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

Version Path
poolparty-1.6.9 bin/cloud-terminate
poolparty-1.6.8 bin/cloud-terminate
poolparty-1.6.7 bin/cloud-terminate
poolparty-1.6.6 bin/cloud-terminate
poolparty-1.6.5 bin/cloud-terminate
poolparty-1.6.4 bin/cloud-terminate
poolparty-1.6.3 bin/cloud-terminate
poolparty-1.6.2 bin/cloud-terminate
poolparty-1.6.1 bin/cloud-terminate
poolparty-1.6.0 bin/cloud-terminate
poolparty-1.5.0 bin/cloud-terminate
poolparty-1.4.8 bin/cloud-terminate
poolparty-1.4.7 bin/cloud-terminate
poolparty-1.4.6 bin/cloud-terminate
poolparty-1.4.5 bin/cloud-terminate
poolparty-1.4.4 bin/cloud-terminate
poolparty-1.4.3 bin/cloud-terminate
poolparty-1.4.2 bin/cloud-terminate
poolparty-1.4.1 bin/cloud-terminate
poolparty-1.4.0 bin/cloud-terminate