Top Level Namespace

Defined Under Namespace

Modules: Aska, Capistrano, Kernel, Monitors, PoolParty, S3String, Spec Classes: Array, Class, CloudNotFoundException, DependencyResolverException, EC2ResponseObject, Exception, Float, Hash, LoadRulesException, MasterException, Module, MyOpenStruct, NicePrinter, NilClass, Numeric, Object, OrderedHash, PackageException, Proc, ProvisionerException, RemoteException, ResourceException, RuntimeException, SpecException, String, Symbol, TemplateNotFound, TestCloudClass, UnacceptableCommand, Vmx, VmxDisk, VmxFile

Instance Method Summary collapse

Instance Method Details

#are_you_sure?(msg) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/poolpartycl.rb', line 9

def are_you_sure?(msg)
  puts msg
  resp = gets.strip!

  case resp
  when "Y"
  when "yes"
  when "y"
    return true
  else
    return false
  end
end

#fObject

Load PoolParty



41
42
43
# File 'lib/poolparty.rb', line 41

%w(version).each do |f|
  require "#{File.dirname(__FILE__)}/poolparty/#{f}"
end

#help_arrayObject



5
6
7
# File 'lib/poolpartycl.rb', line 5

def help_array
  ["-h", "--help", "-V", "--version", "--debug", "-d"]
end

#load_test_cloud(name, poolfile = nil) ⇒ Object



26
27
28
29
30
31
# File 'lib/poolparty/spec.rb', line 26

def load_test_cloud(name, poolfile=nil)  
  PoolParty::Script.inflate_file poolfile
  blk = cloud(name).stored_block.dup
  PoolParty::Pool.reset!
  new_test_cloud &blk
end

#new_test_cloud(&block) ⇒ Object



22
23
24
# File 'lib/poolparty/spec.rb', line 22

def new_test_cloud(&block)  
  TestCloudClass.new(:test_cloud, &block)
end