Class: Scenario::TwoApps

Inherits:
Base
  • Object
show all
Defined in:
lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb

Overview

OneAppTwoEnvs

Direct Known Subclasses

TwoAppsSameGitUri

Instance Attribute Summary

Attributes inherited from Base

#git_remote, #user

Instance Method Summary collapse

Constructor Details

#initialize(name = 'Two Apps', email = '[email protected]', pass = '2apps') ⇒ TwoApps

Returns a new instance of TwoApps.



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 220

def initialize(name = 'Two Apps', email = '[email protected]', 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" => "[email protected]: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