Sha256: 66189198b5a3dcdb02a72d4353dc1f0daa6640e2d86c93d7aa112f1a4819435c
Contents?: true
Size: 646 Bytes
Versions: 31
Compression:
Stored size: 646 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'rubigen' # First, let's generate the spec if %w(-V --version).include? ARGV.first require 'poolspec/version' puts "#{File.basename($0)} #{Poolspec::VERSION::STRING}" exit(0) end name = ARGV.first puts "Creating pool named #{name}" `pool generate #{name}` # Now add the keypairs for the pool based on the default pool name and cloud name @pool = load_pool(self.spec || Binary.get_existing_spec_location) @clouds = [@pool.cloud("#{name}_app")] @clouds.each do |cloud| with_cloud(cloud) do vputs header("Creating keypair for #{name}") create_keypair unless testing end end
Version data entries
31 entries across 31 versions & 3 rubygems