diff options
author | Adam Jacob <adam@opscode.com> | 2009-05-26 18:13:35 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2009-05-26 18:13:35 -0700 |
commit | 20caa7ea2762a43a95e7ff9c3f46e04d179c5a01 (patch) | |
tree | e5c5d61be688da65f9eefabf3400bf7560520e72 /chef/lib/chef/application/solo.rb | |
parent | d402fb984ca6d6e93821dab045a5bfdfa7e7bebd (diff) | |
download | chef-20caa7ea2762a43a95e7ff9c3f46e04d179c5a01.tar.gz |
Fixing solo support, updating solo based features
Diffstat (limited to 'chef/lib/chef/application/solo.rb')
-rw-r--r-- | chef/lib/chef/application/solo.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/lib/chef/application/solo.rb b/chef/lib/chef/application/solo.rb index 59f529a6b7..1385f0c95e 100644 --- a/chef/lib/chef/application/solo.rb +++ b/chef/lib/chef/application/solo.rb @@ -96,7 +96,7 @@ class Chef::Application::Solo < Chef::Application end end - if Chef::Config[:recipes] + if Chef::Config[:recipe_url] cookbooks_path = Chef::Config[:cookbook_path].detect{|e| e =~ /\/cookbooks\/*$/ } recipes_path = File.expand_path(File.join(cookbooks_path, '..')) require 'net/http' @@ -106,7 +106,7 @@ class Chef::Application::Solo < Chef::Application FileUtils.mkdir_p recipes_path path = File.join(recipes_path, 'recipes.tgz') File.open(path, 'wb') do |f| - f.write open(config[:recipes]).read + f.write open(config[:recipe_url]).read end Chef::Mixin::Command.run_command(:command => "cd #{recipes_path} && tar xzvf #{path}") end |