Method: Chef::LXC::KnifeHelper#upload_cookbooks

Defined in:
lib/chef/lxc/knife_helper.rb

#upload_cookbooks(path, *cookbooks) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/chef/lxc/knife_helper.rb', line 21

def upload_cookbooks(path, *cookbooks)
  cookbook_dirs = Array(path)
  knife Chef::Knife::CookbookUpload, *cookbooks do |config|
    config[:all] = true if cookbooks.empty?
    config[:cookbook_path] = cookbook_dirs
  end
end