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

Version Path
auser-poolparty-0.2.15 bin/cloud-ssh
auser-poolparty-0.2.16 bin/cloud-ssh
auser-poolparty-0.2.20 bin/cloud-ssh
auser-poolparty-0.2.21 bin/cloud-ssh
auser-poolparty-0.2.22 bin/cloud-ssh
auser-poolparty-0.2.23 bin/cloud-ssh
auser-poolparty-0.2.24 bin/cloud-ssh
auser-poolparty-0.2.25 bin/cloud-ssh
auser-poolparty-0.2.26 bin/cloud-ssh
auser-poolparty-0.2.35 bin/cloud-ssh
auser-poolparty-0.2.36 bin/cloud-ssh
auser-poolparty-0.2.37 bin/cloud-ssh
auser-poolparty-0.2.38 bin/cloud-ssh
auser-poolparty-0.2.39 bin/cloud-ssh
auser-poolparty-0.2.40 bin/cloud-ssh
auser-poolparty-0.2.41 bin/cloud-ssh
auser-poolparty-0.2.42 bin/cloud-ssh
auser-poolparty-0.2.44 bin/cloud-ssh
auser-poolparty-0.2.8 bin/cloud-ssh
auser-poolparty-0.2.9 bin/cloud-ssh