Sha256: b0cd5c934e59b0b2189147df8adb1182045965497afea2624e12dd67b922a7d5
Contents?: true
Size: 1016 Bytes
Versions: 4
Compression:
Stored size: 1016 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('-c cloudname', '--cloud name', 'Start cloud by this name') { |c| optioner.cloudname c } end load_pool(o.spec || Binary.get_existing_spec_location) @testing = o.testing @clouds = o.cloudname ? {:cloud => cloud(o.cloudname.downcase.to_sym)} : clouds @clouds.each do |name, cloud| with_cloud(cloud, {:testing => @testing}) do puts header("Starting cloud") puts "#{list_of_running_instances.size} running instances (#{minimum_instances} - #{maximum_instances})" if (minimum_instances - list_of_running_instances.size) > 0 puts "Starting the master instance" if testing puts("\tNot launching while in testing mode") else launch_and_configure_master! # run_command_on("puppetd --test", master) end end clear_base_directory unless testing end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.4 | bin/cloud-start |
auser-poolparty-0.2.5 | bin/cloud-start |
auser-poolparty-0.2.6 | bin/cloud-start |
poolparty-0.2.6 | bin/cloud-start |