Class: Scenario::LinkedApp

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

Instance Attribute Summary

Attributes inherited from Base

#git_remote, #user

Instance Method Summary collapse

Constructor Details

#initialize(name = 'Linked App', email = '[email protected]', pass = 'linked') ⇒ LinkedApp

Returns a new instance of LinkedApp.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 16

def initialize(name = 'Linked App', email = '[email protected]', pass = 'linked')
  super
  @app = @account.apps.create("name" => "rails232app", "repository_uri" => git_remote)
  @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"
  })

  _instances.each do |inst|
    @env.instances.create(inst)
  end
  @app_env = @app.app_environments.create(:environment => @env)
end