Sha256: e44fdf7f25ce30f9e1cfea91e8cd5d0f998b1405a71b5377a3c4427329d841c7
Contents?: true
Size: 894 Bytes
Versions: 44
Compression:
Stored size: 894 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" require "poolpartycl" o = PoolParty::Optioner.new(ARGV) do |opts, optioner| opts.on('-n name', '--name name', 'Host name') { |h| optioner.hostname h } end o.loaded_clouds.each do |cloud| with_cloud(cloud) do already_running = %x[ps aux | grep beam | grep -v grep | grep master] if already_running.chomp.empty? boot_file = "#{Messenger.append_dir}/pm_master_rel-0.1" Kernel.system ". /etc/profile && server-build-messenger" unless ::File.file?("#{boot_file}.boot") || testing command = Messenger.erl_command("master", "-boot #{boot_file} #{noshell ? "" : "-noshell -detached -heart"}") vputs "Running #{command}" Kernel.system "export HOME=/root && #{command}" unless testing end end end
Version data entries
44 entries across 44 versions & 3 rubygems