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

Version Path
auser-poolparty-0.2.67 bin/pool-init
auser-poolparty-0.2.68 bin/pool-init
auser-poolparty-0.2.69 bin/pool-init
auser-poolparty-0.2.70 bin/pool-init
auser-poolparty-0.2.71 bin/pool-init
auser-poolparty-0.2.72 bin/pool-init
auser-poolparty-0.2.74 bin/pool-init
auser-poolparty-0.2.76 bin/pool-init
auser-poolparty-0.2.77 bin/pool-init
auser-poolparty-0.2.78 bin/pool-init
auser-poolparty-0.2.79 bin/pool-init
auser-poolparty-0.2.80 bin/pool-init
auser-poolparty-0.2.81 bin/pool-init
auser-poolparty-0.2.84 bin/pool-init
auser-poolparty-0.2.85 bin/pool-init
auser-poolparty-0.2.88 bin/pool-init
auser-poolparty-0.2.89 bin/pool-init
auser-poolparty-0.2.90 bin/pool-init
auser-poolparty-0.2.91 bin/pool-init
auser-poolparty-0.2.92 bin/pool-init