Sha256: 37d5fff5bb1b63f39916c46489caa00054172e3390654ebab5e47eb2a54f004b

Contents?: true

Size: 1.08 KB

Versions: 17

Compression:

Stored size: 1.08 KB

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 }
  opts.on('-l', '--no-shell', 'No shell') {optioner.noshell true}
end

load_pool(o.spec || Binary.get_existing_spec_location)

include Remote

@clouds = o.cloudname ? [cloud(o.cloudname.downcase.to_sym)] : clouds
@hostname = o.hostname ? o.hostname : `hostname`.chomp

@hostname = "node0" if @hostname == "master" # Quick fix to make sure we have a node running on the master as well

@clouds.each do |name, cloud|
  
  with_cloud(cloud, {:testing => o.testing, :hostname => @hostname, :noshell => o.noshell }) do
    # TODO: Change this to be app specfic
    # SECURITY RISK
    
    boot_file = "#{Messenger.append_dir}/pm_node_rel-0.1"
    command = Messenger.erl_command(hostname, "-boot #{boot_file} #{noshell ? "" : "-detached -heart"}")
    
    Kernel.system command
  end  
  
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
auser-poolparty-0.2.20 bin/server-start-node
auser-poolparty-0.2.21 bin/server-start-node
auser-poolparty-0.2.22 bin/server-start-node
auser-poolparty-0.2.23 bin/server-start-node
auser-poolparty-0.2.24 bin/server-start-node
auser-poolparty-0.2.25 bin/server-start-node
auser-poolparty-0.2.26 bin/server-start-node
auser-poolparty-0.2.35 bin/cloud-ensure-provisioning
auser-poolparty-0.2.36 bin/cloud-ensure-provisioning
auser-poolparty-0.2.37 bin/cloud-ensure-provisioning
auser-poolparty-0.2.38 bin/cloud-ensure-provisioning
auser-poolparty-0.2.39 bin/cloud-ensure-provisioning
auser-poolparty-0.2.40 bin/cloud-ensure-provisioning
auser-poolparty-0.2.41 bin/cloud-ensure-provisioning
auser-poolparty-0.2.42 bin/cloud-ensure-provisioning
auser-poolparty-0.2.44 bin/cloud-ensure-provisioning
poolparty-0.2.18 bin/server-start-node