Sha256: 01c7ca8985a29aa3a9471657fe55b4f59aa5bdc55d65e3b252331dd5772fa793

Contents?: true

Size: 808 Bytes

Versions: 13

Compression:

Stored size: 808 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "poolparty"
require "poolpartycl"

available_monitors = PoolParty::Monitors.available_monitors
o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
  opts.on('-n name', '--name name', 'Host name')    { |h| optioner.hostname h }
end

load_pool(o.spec || Binary.get_existing_spec_location)

include Remote

@clouds = extract_cloud_from_options o

@clouds.each do |cloud|
  
  with_cloud(cloud, {:testing => o.testing, :verbose => o.verbose }) do
    
    boot_file = "#{Messenger.append_dir}/pm_master_rel-0.1"
    command = Messenger.erl_command("master", "-boot #{boot_file} #{noshell ? "" : "-detached -heart"}")
    
    vputs "Running #{command}"
    
    Kernel.system "exec #{command}" unless testing
  end  
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
auser-poolparty-0.2.35 bin/server-start-master
auser-poolparty-0.2.36 bin/server-start-master
auser-poolparty-0.2.37 bin/server-start-master
auser-poolparty-0.2.38 bin/server-start-master
auser-poolparty-0.2.39 bin/server-start-master
auser-poolparty-0.2.40 bin/server-start-master
auser-poolparty-0.2.41 bin/server-start-master
auser-poolparty-0.2.42 bin/server-start-master
auser-poolparty-0.2.44 bin/server-start-master
auser-poolparty-0.2.45 bin/server-start-master
auser-poolparty-0.2.46 bin/server-start-master
auser-poolparty-0.2.47 bin/server-start-master
auser-poolparty-0.2.48 bin/server-start-master