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