Sha256: 9c4314ff03c1ea6eb6126308bf64b5ec270ff42c50c0be63e47de75b79bc6044

Contents?: true

Size: 619 Bytes

Versions: 9

Compression:

Stored size: 619 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', 'Listing for cloud name')    { |c| optioner.cloudname c }
end

load_pool(o.spec || Binary.get_existing_spec_location)

include Remote

@clouds = extract_cloud_from_options o

@clouds.each do |cl|
  
  with_cloud(cl, {:testing => o.testing}) do
    cmd = "hostname master && #{PoolParty::Remote::RemoteInstance.dependency_resolver_comand}"
    %x[#{cmd}] unless testing
    after_launch_master
  end  
  
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 bin/server-become-master
auser-poolparty-1.1.3 bin/server-become-master
auser-poolparty-1.1.4 bin/server-become-master
auser-poolparty-1.1.5 bin/server-become-master
auser-poolparty-1.1.6 bin/server-become-master
auser-poolparty-1.1.7 bin/server-become-master
fairchild-poolparty-1.1.3 bin/server-become-master
fairchild-poolparty-1.1.4 bin/server-become-master
fairchild-poolparty-1.1.5 bin/server-become-master