From 46303598f9af0b050c291c07bde39f902eb80ba8 Mon Sep 17 00:00:00 2001 From: sersut Date: Tue, 9 Jul 2013 22:44:13 +0300 Subject: Add -E flag to chef-solor so that users can make use of environments with chef-solo. --- lib/chef/application/solo.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb index 5e3fe90607..ada8cb0ae7 100644 --- a/lib/chef/application/solo.rb +++ b/lib/chef/application/solo.rb @@ -160,6 +160,11 @@ class Chef::Application::Solo < Chef::Application :description => 'Enable whyrun mode', :boolean => true + option :environment, + :short => '-E ENVIRONMENT', + :long => '--environment ENVIRONMENT', + :description => 'Set the Chef Environment on the node' + attr_reader :chef_solo_json def initialize -- cgit v1.2.1