summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2013-07-11 12:09:03 -0700
committerSerdar Sutay <serdar@opscode.com>2013-07-11 12:09:03 -0700
commitaaa602a40d75eac3b746f3e5cdfd287b7bb6a199 (patch)
tree92dc309641d788381ddf7ab17fecef6d1becc18d
parent8afd5cc41210383728d3fd32b11c5183fa124e47 (diff)
parent46303598f9af0b050c291c07bde39f902eb80ba8 (diff)
downloadchef-aaa602a40d75eac3b746f3e5cdfd287b7bb6a199.tar.gz
Merge pull request #885 from opscode/solo-environment-support
Add -E flag to chef-solo in order to enable people use the new environment support in chef-solo.
-rw-r--r--lib/chef/application/solo.rb5
1 files changed, 5 insertions, 0 deletions
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