Sha256: 2e862b7f81be439228a0fa3de0e1a3461edd3f5aed183afe429bd777a6bb3f9e

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 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|  
  optioner.cloudnames
  optioner.daemonizeable
end

o.loaded_clouds.each do |cloud|
  with_cloud(cloud) do
    vputs header("Starting cloud #{name}")
    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
        vputs "Launching and configuring the master"
        @cl = self
        daemon ? daemonize {@cl.launch_and_configure_master!} : launch_and_configure_master!
      # end
    # end
    when_no_pending_instances do
      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
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
auser-poolparty-0.2.69 bin/cloud-start
auser-poolparty-0.2.70 bin/cloud-start
auser-poolparty-0.2.71 bin/cloud-start
auser-poolparty-0.2.72 bin/cloud-start
auser-poolparty-0.2.74 bin/cloud-start
auser-poolparty-0.2.76 bin/cloud-start
auser-poolparty-0.2.77 bin/cloud-start
auser-poolparty-0.2.78 bin/cloud-start
auser-poolparty-0.2.79 bin/cloud-start
auser-poolparty-0.2.80 bin/cloud-start
auser-poolparty-0.2.81 bin/cloud-start