Sha256: 253ab41477ab321ea33348389548ebee96e7bbe89d5a8f2b0526fbb82cb3d9d9

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 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)

unless o.cloudname && clouds.keys.size > 1
  @cloud = cloud(o.cloudname.downcase.to_sym)
else
  puts "Error: You must indicate a cloud from which your instance is from"
  exit(0)
end

instance = @cloud.ssh_into_instance_number( o.num.to_i || 0 )

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-0.2.2 bin/cloud-ssh
auser-poolparty-0.2.3 bin/cloud-ssh
auser-poolparty-0.2.4 bin/cloud-ssh
auser-poolparty-0.2.5 bin/cloud-ssh
auser-poolparty-0.2.6 bin/cloud-ssh
poolparty-0.2.6 bin/cloud-ssh