Sha256: 304bd085e8befc85f33acddabc0cff1f0c9c4d0d8c4fcdfe2007d1cd6fa9ba1d

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 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 }
end

o.loaded_clouds.each do |cloud|
  with_cloud(cloud) do
    vputs header("Starting cloud")
    vputs "#{list_of_running_instances.size} running instances (#{minimum_instances} - #{maximum_instances})"
    if list_of_running_instances.size <= 1
      puts "Starting the master instance"    
      if testing
        puts("\tNot launching while in testing mode")
      else
        provisioning_in_progress
        vputs "Launching and configuring the master"
        launch_and_configure_master!
        provisioning_complete
      end
    end
    puts open(::File.join(File.dirname(__FILE__), "..", "lib", "poolparty", "config", "postlaunchmessage.txt")).read ^ {:master_ip => master.ip.chomp}
    clear_base_directory unless testing
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
auser-poolparty-0.2.54 bin/cloud-start
auser-poolparty-0.2.55 bin/cloud-start
auser-poolparty-0.2.56 bin/cloud-start
auser-poolparty-0.2.57 bin/cloud-start
auser-poolparty-0.2.58 bin/cloud-start
auser-poolparty-0.2.59 bin/cloud-start
auser-poolparty-0.2.60 bin/cloud-start
auser-poolparty-0.2.61 bin/cloud-start
auser-poolparty-0.2.62 bin/cloud-start