Sha256: b7da450a60786101fe04eef0e48a573fff04f7ea8dfc40929327b65090cf665f
Contents?: true
Size: 580 Bytes
Versions: 21
Compression:
Stored size: 580 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', 'Listing for cloud name') { |c| optioner.cloudname c } opts.on('-i num', '--id num', 'Instance num to ssh (default: 0)') { |i| optioner.num i } end load_pool(o.spec || Binary.get_existing_spec_location) @cloud = o.cloudname ? cloud(o.cloudname.downcase.to_sym) : cloud(clouds.keys.first) instance = @cloud.ssh_into_instance_number( o.num.to_i || 0 ) if @cloud
Version data entries
21 entries across 21 versions & 2 rubygems