Sha256: 2008370a8178575d4ff2dec8afbd605c72f8353f9552e2a9416bc37646ecd89f
Contents?: true
Size: 1.06 KB
Versions: 8
Compression:
Stored size: 1.06 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('-p', '--slave', 'Provision slave (default: false)') { optioner.provision_slave true } opts.on('-i num', '--id num', 'Instance num to provision') { |i| optioner.instance_num i } end o.loaded_clouds.each do |cloud| with_cloud(cloud) do instance_num = instance_number.to_i if instance_number if instance_num @instance = get_instance_by_number( instance_num ) instance_num == 0 ? Provisioner.provision_master(self, testing) : Provisioner.provision_slave(@instance, self, testing) else if provision_slave vputs "Provisioning slaves" Provisioner.provision_slaves(self, testing) else vputs "Provisioning master" provisioning_in_progress verbose ? Provisioner.provision_master(self, testing) : hide_output { Provisioner.provision_master(self, testing) } provisioning_complete end end end end
Version data entries
8 entries across 8 versions & 1 rubygems