Sha256: 62527ebdceade1fb7458e4659aac9e6f2d8ee4424d78f5e66d721b10c112ce44

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "poolparty"
require "poolpartycl"

available_tests = {
  :launch => "Launches a cloud and ensures it is accessible at port 80"
}

available_tests_string = available_tests.map {|k,v| "#{k}: #{v}"}.join("\n")

o = PoolParty::Optioner.new(ARGV) do |opts, optioner|  
  optioner.cloudnames
  optioner.daemonizeable
  opts.on('--type type', 
    "Run type of test. Available tests: #{available_tests_string} (default: launch)")    { |c| optioner.testtype c }
end

o.loaded_clouds.each do |cloud|
  with_cloud(cloud) do
    puts "Are you sure you want to live test?"
    body = ["Normal charges for running instances will apply"]
    body << "as this will run instances"
    body.each {|st| puts "\t#{st}"}
    print "(y|n): "
    input = gets.downcase.chomp
    do_test = input.downcase == "y" ? true : false
    if do_test
      case testtype
      when "launch"
      when nil
        print_with_nice_printer("Starting live specing cloud #{name}")      
        # hide_output {launch_and_configure_master!}
        print_with_nice_printer("Waiting for cloud to provision")
        
      end
    end
  end
  
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
auser-poolparty-0.2.80 bin/cloud-spec
auser-poolparty-0.2.81 bin/cloud-spec
auser-poolparty-0.2.84 bin/cloud-spec
auser-poolparty-0.2.85 bin/cloud-spec
auser-poolparty-0.2.88 bin/cloud-spec
auser-poolparty-0.2.89 bin/cloud-spec
auser-poolparty-0.2.90 bin/cloud-spec
auser-poolparty-0.2.91 bin/cloud-spec
auser-poolparty-0.2.92 bin/cloud-spec
auser-poolparty-0.2.93 bin/cloud-spec
auser-poolparty-0.2.94 bin/cloud-spec
auser-poolparty-1.0.0 bin/cloud-spec
poolparty-0.2.84 bin/cloud-spec