Sha256: 2948a6a0e7e89631a6d79eca0e4c7c55dfb6190f0bf886ad7921c112df3c8a99
Contents?: true
Size: 1.21 KB
Versions: 27
Compression:
Stored size: 1.21 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('-t', '--type [master|slave|all]', 'Provision these instances (default: all)') { |o| optioner.class_type o } # opts.on('-a', '--all', 'Provision all the instances') { |o| optioner.all true } # opts.on('-n [name]', '--name [name]', 'Pool to provision (required)') {|o| optioner.cloud_name o } # end # load_pool(o.spec || Binary.get_existing_spec_location) # # if o.cloud_name # @c = cloud(o.cloud_name.downcase.to_sym) # else # puts "Cloud name required. Please specify it with -c [name]" # exit(0) # end # # if o.class_type && o.class_type != "all" && !o.all # case o.class_type # when "master","m" # puts header("Provisioning the master instances") # when "slave", "s" # puts header("Provisioning the slave instances") # end # else # # Provision all the instances # puts header("Provisioning all the instances") # provisioner_file = ::File.join(Base.storage_directory, "install.sh") # File.open(provisioner_file, "w+") do |file| # file << Provisioner::Master.install(@c) # end # end
Version data entries
27 entries across 27 versions & 2 rubygems