Sha256: 325b8866f570e072aa5f00a5ce0b13e43c7a8e76f409eb69bf7b02363d80b7cd
Contents?: true
Size: 725 Bytes
Versions: 47
Compression:
Stored size: 725 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', 'Add the keypair for cloud name') { |c| optioner.cloudname c } opts.on('-l', '--listing', 'List the keypairs for the clouds') { optioner.listkeys true } end if o.listkeys puts "Cloud\t\tKeypair" puts "--------------------------" o.loaded_clouds.each do |cloud| puts "#{cloud.name}\t--\t#{cloud.keypair}" end else o.loaded_clouds.each do |cloud| with_cloud(cloud) do vputs header("Creating keypair for #{name}") create_keypair unless testing end end end
Version data entries
47 entries across 47 versions & 2 rubygems