Sha256: be1474d78e07d161487213a874d8344b35c40231837908f42cd7c120bd25e32b
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 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 @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 = extract_cloud_from_options o @clouds.each do |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 "exec #{command}" unless testing end end
Version data entries
10 entries across 10 versions & 1 rubygems