Sha256: dc6032004c19cf03bcb681002243232bb8dcac89b9bcee355124acb1eb48d2fb

Contents?: true

Size: 802 Bytes

Versions: 14

Compression:

Stored size: 802 Bytes

Contents

["core", "spec"].each do |dir|
  Dir[File.join(File.dirname(__FILE__), "poolparty", "spec", dir, "*.rb")].each {|f| require f}
end

class TestCloudClass < PoolParty::Cloud::Cloud  
  def build_test_manifest
    reset_resources!
    realize_plugins!
    
    returning Array.new do |arr|
      
      services.each do |service|
        service.options.merge!(:name => service.name)
        classpackage_with_self(service)
      end
      
      global_classpackages.each do |cls|
        arr << cls.to_string
      end
      
    end.join("\n")
  end
end

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

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
auser-poolparty-0.2.72 lib/poolpartyspec.rb
auser-poolparty-0.2.74 lib/poolpartyspec.rb
auser-poolparty-0.2.76 lib/poolpartyspec.rb
auser-poolparty-0.2.77 lib/poolpartyspec.rb
auser-poolparty-0.2.78 lib/poolpartyspec.rb
auser-poolparty-0.2.79 lib/poolpartyspec.rb
auser-poolparty-0.2.80 lib/poolpartyspec.rb
auser-poolparty-0.2.81 lib/poolpartyspec.rb
auser-poolparty-0.2.84 lib/poolpartyspec.rb
auser-poolparty-0.2.85 lib/poolpartyspec.rb
auser-poolparty-0.2.88 lib/poolpartyspec.rb
auser-poolparty-0.2.89 lib/poolpartyspec.rb
auser-poolparty-0.2.90 lib/poolpartyspec.rb
poolparty-0.2.84 lib/poolpartyspec.rb