Sha256: 24a85a1d405a656a34eca39af8a1cfa7c774b722cab51242ff128121ecc0210d
Contents?: true
Size: 1.15 KB
Versions: 12
Compression:
Stored size: 1.15 KB
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 cloudname', '--name name', 'Start cloud by this name') { |c| optioner.cloudname c } opts.on('-p', '--slave', 'Provision slave (default: false)') { optioner.provision_slave true } opts.on('-i num', '--id num', 'Instance num to provision') { |i| optioner.instance_number i } end o.loaded_clouds.each do |cloud| with_cloud(cloud) do setup_dev instance_num = instance_number.to_i if instance_number if instance_num @instance = get_instance_by_number( instance_num ) instance_num == 0 ? provisioner_for(master).install(testing) : provisioner_for(@instance).install(testing) else if provision_slave vputs "Provisioning slaves" verbose ? provisioner_for(nil).install(testing) : hide_output { provisioner_for(nil).install(testing) } else vputs "Provisioning master" verbose ? provisioner_for(master).install(testing) : hide_output { provisioner_for(master).install(testing) } end end end end
Version data entries
12 entries across 12 versions & 2 rubygems