lib/gogetit/cli.rb in gogetit-0.3.0 vs lib/gogetit/cli.rb in gogetit-0.4.0
- old
+ new
@@ -39,16 +39,15 @@
abort('Invalid argument entered.')
end
# post-tasks
if options[:chef]
- knife_bootstrap(name, type, Gogetit.config)
- update_vault(Gogetit.config)
+ knife_bootstrap(name, type, Gogetit.config, Gogetit.logger)
+ update_vault(Gogetit.config, Gogetit.logger)
end
Gogetit.config[:default][:user] ||= ENV['USER']
puts "ssh #{Gogetit.config[:default][:user]}@#{name}"
- print "ssh #{Gogetit.config[:default][:user]}@#{name}"
end
desc 'destroy NAME', 'Destroy either a container or KVM domain.'
method_option :chef, :type => :boolean, :desc => "Enable chef awareness."
def destroy(name)
@@ -63,11 +62,11 @@
abort('Invalid argument entered.')
end
end
# post-tasks
if options[:chef]
- knife_remove(name) if options[:chef]
- update_vault(Gogetit.config)
+ knife_remove(name, Gogetit.logger) if options[:chef]
+ update_vault(Gogetit.config, Gogetit.logger)
end
end
desc 'rebuild NAME', 'Destroy and create either a container or KVM domain again.'
def rebuild(type=nil, name)