Sha256: 331fc099ea49de3c65b52a529081387e273ada1d078067b89d8376c750ebda2b
Contents?: true
Size: 635 Bytes
Versions: 53
Compression:
Stored size: 635 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" require "poolpartycl" @cmd = ARGV[-1] 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 } opts.on('-c command', '--command command', 'Command to run on the instance') { |c| optioner.command c } end @cmd = o.command if (o.command) o.loaded_clouds.each do |cl| @cloud.run_command_on_instance_number( @cmd, o.num.to_i || 0 ) if @cloud end
Version data entries
53 entries across 53 versions & 3 rubygems