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