Sha256: 22a883c3b9652533635b584f90e4b0b4edeb8dc9240334b85c1a61c5cb71e245
Contents?: true
Size: 526 Bytes
Versions: 6
Compression:
Stored size: 526 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" require "poolpartycl" o = PoolParty::Optioner.new(ARGV) do |opts, optioner| opts.on('-n name', '--name name', 'Terminate the cloud of this name') { |c| optioner.cloudname c } end o.loaded_clouds.each do |cloud| with_cloud(cloud) do list_of_running_instances.each do |inst| puts "Shutting down #{inst.instance_id}" terminate_instance!(:instance_id => inst.instance_id) end end end
Version data entries
6 entries across 6 versions & 2 rubygems