Class: Scenario::UnlinkedApp
- Defined in:
- lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name = 'Unlinked App', email = '[email protected]', pass = 'unlinked') ⇒ UnlinkedApp
constructor
A new instance of UnlinkedApp.
Constructor Details
#initialize(name = 'Unlinked App', email = '[email protected]', pass = 'unlinked') ⇒ UnlinkedApp
Returns a new instance of UnlinkedApp.
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 122 def initialize(name = 'Unlinked App', email = '[email protected]', pass = 'unlinked') super @app = @account.apps.create({ "name" => "rails232app", "repository_uri" => git_remote }) @other = @account.environments.create({ "name" => "chickenwings", "ssh_username" => "ham", "app_server_stack_name" => "nginx_mongrel", "load_balancer_ip_address" => '127.0.0.0', "framework_env" => "production" }) @app_env = @app.app_environments.create(:environment => @other) @env = @account.environments.create({ "name" => "giblets", "ssh_username" => "turkey", "app_server_stack_name" => "nginx_mongrel", "load_balancer_ip_address" => '127.0.0.0', "framework_env" => "production" }) @env.instances.create({ "status" => "running", "amazon_id" => 'i-ddbbdd92', "role" => "solo", "public_hostname" => "ec2-174-129-198-124.compute-1.amazonaws.com" }) end |