Sha256: 1e835ea224e666212bd6c07b98ad505de3a01cb0e168a69ef3d966e4f8dbc48c
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 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 } end load_pool(o.spec || Binary.get_existing_spec_location) @location = o.location ? o.location : "remote" include Remote @clouds = o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds @clouds.each do |name, cloud| with_cloud(cloud, {:location => @location, :verbose => o.verbose}) do vputs header("Creating keypair for #{name}") create_keypair unless testing end end
Version data entries
6 entries across 6 versions & 1 rubygems