Sha256: c019d010b604bf6aad2bebc3afcdb89fb60348f59865f2a43cc279c3cd83ade0
Contents?: true
Size: 686 Bytes
Versions: 20
Compression:
Stored size: 686 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + "/../lib") require "poolparty" require 'git-style-binary/command' GitStyleBinary.command do banner <<-EOS Usage: #{$0} #{all_options_string} COMMAND [ARGS] terminate the cloud EOS short_desc "terminate the cloud" opt :yes, "Answer yes to the are you sure question", :type => :boolean, :default => false run do |command| @loaded_clouds.each do |cld| msg = [ "Shutting down #{cld.name} cloud", "Are you sure? (Y/N)" ] o = command[:yes] || true if o puts "Shutting down cloud" cld.teardown else end end end end
Version data entries
20 entries across 20 versions & 1 rubygems