Sha256: 4d892ef2d858c73e931fc82640a5dd530bba497f3a392484676368748cadb2b9
Contents?: true
Size: 744 Bytes
Versions: 9
Compression:
Stored size: 744 Bytes
Contents
["core", "spec"].each do |dir| Dir[File.join(File.dirname(__FILE__), "spec", dir, "*.rb")].each {|f| require f} end class TestCloudClass < PoolParty::Cloud::Cloud def build_test_manifest 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
9 entries across 9 versions & 2 rubygems