33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/chef/knife/spork-upload.rb', line 33
def run
self.config = Chef::Config.merge!(config)
config[:cookbook_path] ||= Chef::Config[:cookbook_path]
if @name_args.empty?
show_usage
ui.error("You must specify the --all flag or at least one cookbook name")
exit 1
end
@cookbooks = load_cookbooks(name_args)
include_dependencies if config[:depends]
run_plugins(:before_upload)
@cookbooks = load_cookbooks(name_args)
include_dependencies if config[:depends]
upload
run_plugins(:after_upload)
end
|