Sha256: 3e7099f827a77cba0ea9ab1a2b050d113cc81e6cf7e31f2eedc62024a84922cb

Contents?: true

Size: 1.07 KB

Versions: 12

Compression:

Stored size: 1.07 KB

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('-c [master|slaves|all]', '--class [master|slaves|all]', 'Provision class (default: all)')    { |c| optioner.provision_class c }
  opts.on('-n name', '--name name', 'Listing for cloud name')    { |c| optioner.cloudname c }
end
load_pool(o.spec || Binary.get_existing_spec_location)

@provision_class = o.provision_class || "all"

include Remote

@clouds = o.cloudname ? {:cloud => cloud(o.cloudname.downcase.to_sym)} : clouds

@clouds.each do |name, cloud|
  
  with_cloud(cloud, {:testing => o.testing, :location => @location, :provision_class => @provision_class}) do
    
    hide_output do
      if provision_class == "master" || provision_class == "all"
        Provisioner.configure_master(self, testing)
      end
      if provision_class == "slave" || provision_class == "all"
        Provisioner.configure_slaves(self, testing)
      end
    end    
    clear_base_directory unless testing
  end    
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
auser-poolparty-0.2.15 bin/cloud-configure
auser-poolparty-0.2.16 bin/cloud-configure
auser-poolparty-0.2.20 bin/cloud-configure
auser-poolparty-0.2.21 bin/cloud-configure
auser-poolparty-0.2.22 bin/cloud-configure
auser-poolparty-0.2.4 bin/cloud-configure
auser-poolparty-0.2.5 bin/cloud-configure
auser-poolparty-0.2.6 bin/cloud-configure
auser-poolparty-0.2.8 bin/cloud-configure
auser-poolparty-0.2.9 bin/cloud-configure
poolparty-0.2.6 bin/cloud-configure
poolparty-0.2.18 bin/cloud-configure