Sha256: 3c78319b2f6d111e90caa7d626194b27ad082581bb19b1291f9f6d9bfe9a517f

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 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}")
        puts "TODO:  this isn't implented yet."
        # hide_output {launch_and_configure_master!}
        print_with_nice_printer("Waiting for cloud to provision")
        
      end
    end
  end
  
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 bin/cloud-spec
auser-poolparty-1.1.3 bin/cloud-spec
auser-poolparty-1.1.4 bin/cloud-spec
auser-poolparty-1.1.5 bin/cloud-spec
auser-poolparty-1.1.6 bin/cloud-spec
auser-poolparty-1.1.7 bin/cloud-spec
fairchild-poolparty-1.1.3 bin/cloud-spec
fairchild-poolparty-1.1.4 bin/cloud-spec
fairchild-poolparty-1.1.5 bin/cloud-spec