Class: Ladder::Fetch

Inherits:
Command
  • Object
show all
Defined in:
lib/chef/ladder.rb

Instance Method Summary collapse

Methods inherited from Command

#selected_cookbooks

Instance Method Details

#executeObject



38
39
40
41
42
43
44
45
46
# File 'lib/chef/ladder.rb', line 38

def execute
	super
	puts "Fetching cookbooks:"
	ensure_directory(global_options[:directory])
	for cookbook in selected_cookbooks
		puts " - #{cookbook.name} from #{cookbook.source}"
		cookbook.fetch(global_options[:directory])
	end
end