diff options
author | Nuo Yan <nuo@opscode.com> | 2010-09-23 11:37:30 -0700 |
---|---|---|
committer | Seth Falcon <seth@opscode.com> | 2010-11-01 10:47:00 -0700 |
commit | 56ff759e842948ec01b7d69d33fc08accfda80c6 (patch) | |
tree | 201d70cace6dd71eedeaede65687424c3712c1bf /chef/lib/chef/knife.rb | |
parent | 28e7431b212abc740445206472818f5919a5f3f3 (diff) | |
download | chef-56ff759e842948ec01b7d69d33fc08accfda80c6.tar.gz |
enable search for environment objects and complete the knife environment from file feature
Diffstat (limited to 'chef/lib/chef/knife.rb')
-rw-r--r-- | chef/lib/chef/knife.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chef/lib/chef/knife.rb b/chef/lib/chef/knife.rb index 72b952452f..7a2b8ad09a 100644 --- a/chef/lib/chef/knife.rb +++ b/chef/lib/chef/knife.rb @@ -392,6 +392,8 @@ class Chef relative_path = "nodes" elsif klass == Chef::DataBagItem relative_path = "data_bags/#{bag}" + elsif klass == Chef::Environment + relative_path = "environments" end relative_file = File.expand_path(File.join(Dir.pwd, relative_path, from_file)) |