Class: Scenario::OneAppManyEnvs

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 = 'One App Many Envs', email = '[email protected]', pass = '1app2cups') ⇒ OneAppManyEnvs

Returns a new instance of OneAppManyEnvs.



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 178

def initialize(name = 'One App Many Envs', email = '[email protected]', pass = '1app2cups')
  super
  @app = @account.apps.create({
    "name" => "rails232app",
    "repository_uri" => git_remote
  })

  @env1 = @account.environments.create({
    "ssh_username" => "turkey",
    "name" => "giblets",
    "app_server_stack_name" => "nginx_mongrel",
    "load_balancer_ip_address" => '127.0.0.0',
    "framework_env" => "production",
  })
  @env1.app_environments.create(:app => @app)

  @env1.instances.create({
    "status" => "running",
    "amazon_id" => 'i-ddbbdd92',
    "role" => "solo",
    "public_hostname" => "app_master_hostname.compute-1.amazonaws.com"
  })
  @env2 = @account.environments.create({
    "ssh_username" => "ham",
    "instances" => [],
    "name" => "bakon",
    "app_server_stack_name" => "nginx_passenger",
    "load_balancer_ip_address" => '127.0.0.0',
  })
  @env2.app_environments.create(:app => @app)

  @env3 = @account.environments.create({
    "ssh_username" => "hamburger",
    "instances" => [],
    "name" => "beef",
    "app_server_stack_name" => "nginx_passenger",
    "load_balancer_ip_address" => '127.0.0.0',
  })
end