class Scenario::TwoApps
Public Class Methods
new(name = 'Two Apps', email = 'two.apps@test.local', pass = '2apps')
click to toggle source
Calls superclass method
Scenario::Base::new
# File lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb, line 227 def initialize(name = 'Two Apps', email = 'two.apps@test.local', pass = '2apps') super @env1 = @account.environments.create({ "name" => "giblets", "framework_env" => "staging", "ssh_username" => "turkey", "app_server_stack_name" => "nginx_unicorn", "load_balancer_ip_address" => '127.0.0.0', }) @app1 = @account.apps.create({ "name" => "rails232app", "repository_uri" => "git://github.com/smerritt/rails232app.git" }) @env1.app_environments.create(:app => @app1) @env1.instances.create({ "status" => "running", "name" => nil, "role" => "solo", "public_hostname" => "ec2-174-129-7-113.compute-1.amazonaws.com", "amazon_id" => "i-0911f063", }) @env2 = @account.environments.create({ "framework_env" => "production", "name" => "keycollector_production", "ssh_username" => "deploy", "load_balancer_ip_address" => '127.0.0.0', "app_server_stack_name" => "nginx_mongrel", }) @app2 = @account.apps.create({ "name" => "keycollector", "repository_uri" => "git@github.com:smerritt/keycollector.git", }) @env2.app_environments.create(:app => @app2) @env2.instances.create({ "status" => "running", "name" => nil, "role" => "solo", "public_hostname" => "app_master_hostname.compute-1.amazonaws.com", "amazon_id" => "i-051195b9", }) end