class Chef::Resource::ChefResolvedCookbooks
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Cheffish::BaseProperties::new
# File lib/chef/resource/chef_resolved_cookbooks.rb, line 9 def initialize(*args) super require "berkshelf" berksfile Berkshelf::Berksfile.new("/tmp/Berksfile") @cookbooks_from = [] end
Public Instance Methods
cookbooks_from(path = nil)
click to toggle source
# File lib/chef/resource/chef_resolved_cookbooks.rb, line 20 def cookbooks_from(path = nil) if path @cookbooks_from << path else @cookbooks_from end end