Class: Scenario::MultipleAmbiguousAccounts

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

Overview

LinkedApp

Instance Attribute Summary

Attributes inherited from Base

#git_remote, #user

Instance Method Summary collapse

Constructor Details

#initialize(name = 'Multiple Ambiguous Accounts', email = '[email protected]', pass = 'multi') ⇒ MultipleAmbiguousAccounts

Returns a new instance of MultipleAmbiguousAccounts.



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 83

def initialize(name = 'Multiple Ambiguous Accounts', email = '[email protected]', pass = 'multi')
  super
  @account2 = @user.accounts.create("name" => "account_2")
  @app2 = @account2.apps.create("name" => "rails232app", "repository_uri" => git_remote)
  @env2 = @account2.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|
    @env2.instances.create(inst)
  end
  @app_env2 = @app2.app_environments.create(:environment => @env2)
end