Sha256: cd6bc99b7fd3446092b15789dfd524181f8c06b358d35e758ac51bce7322c15b
Contents?: true
Size: 762 Bytes
Versions: 8
Compression:
Stored size: 762 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} contracts the cloud by a single instance EOS short_desc "contracts the cloud by a single instance" run do |command| @loaded_clouds.each do |cld| node_to_terminate = cld.nodes.last msg = [ "Contracting cloud #{cld.name} (#{cld.keypair}) by 1", " node: #{node_to_terminate.public_ip}" ] print_msg(msg) node_to_terminate.terminate! msg = [ "#{node_to_terminate.public_ip} has been terminated" ] print_msg(msg) end end end
Version data entries
8 entries across 8 versions & 2 rubygems