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