43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/chef/knife/spork-upload.rb', line 43
def run
self.class.send(:include, KnifeSpork::Runner)
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
unload_berkshelf_if_specified
@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
|