Sha256: 8e90bff4ecd3a2b004ffa2fc087b6f4411be7f007eef3197b377d7c5be8b96ed
Contents?: true
Size: 703 Bytes
Versions: 28
Compression:
Stored size: 703 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] || are_you_sure?(msg) if o vputs "Shutting down cloud" cld.terminate! else end end end end
Version data entries
28 entries across 28 versions & 3 rubygems