diff options
author | danielsdeleo <dan@getchef.com> | 2014-07-29 20:26:36 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-07-30 14:07:08 -0700 |
commit | 08cda78896af44809fa7108939bc57bda18a2181 (patch) | |
tree | 718861db2f9e411000c5a1016c424e6f6864bbfa /lib/chef/cookbook_uploader.rb | |
parent | 0a18c422b4ba0bec54f70c57da1ad92b3b3e53ac (diff) | |
download | chef-08cda78896af44809fa7108939bc57bda18a2181.tar.gz |
Remove unused argument to CookbookUploader#initialize
Diffstat (limited to 'lib/chef/cookbook_uploader.rb')
-rw-r--r-- | lib/chef/cookbook_uploader.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/cookbook_uploader.rb b/lib/chef/cookbook_uploader.rb index ae02dd68c4..2d8bf5bc7e 100644 --- a/lib/chef/cookbook_uploader.rb +++ b/lib/chef/cookbook_uploader.rb @@ -35,8 +35,8 @@ class Chef # in Chef::Config. # * :concurrency An integer that decided how many threads will be used to # perform concurrent uploads - def initialize(cookbooks, path, opts={}) - @path, @opts = path, opts + def initialize(cookbooks, opts={}) + @opts = opts @cookbooks = Array(cookbooks) @rest = opts[:rest] || Chef::REST.new(Chef::Config[:chef_server_url]) @concurrency = opts[:concurrency] || 10 @@ -133,7 +133,7 @@ class Chef def validate_cookbooks cookbooks.each do |cb| - syntax_checker = Chef::Cookbook::SyntaxCheck.for_cookbook(cb.name, @user_cookbook_path) + syntax_checker = Chef::Cookbook::SyntaxCheck.for_cookbook(cb.name) Chef::Log.info("Validating ruby files") exit(1) unless syntax_checker.validate_ruby_files Chef::Log.info("Validating templates") |