Sha256: e54606981bc7be4ee8e19f5c72352758be23fe40f15da02d68b667321acf5b8e

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 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
    setup_dev
    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 & 2 rubygems

Version Path
auser-poolparty-0.2.84 bin/cloud-start
auser-poolparty-0.2.85 bin/cloud-start
auser-poolparty-0.2.88 bin/cloud-start
auser-poolparty-0.2.89 bin/cloud-start
auser-poolparty-0.2.90 bin/cloud-start
auser-poolparty-0.2.91 bin/cloud-start
auser-poolparty-0.2.92 bin/cloud-start
auser-poolparty-0.2.93 bin/cloud-start
auser-poolparty-0.2.94 bin/cloud-start
auser-poolparty-1.0.0 bin/cloud-start
poolparty-0.2.84 bin/cloud-start