Class: Scenario::TwoApps
- Defined in:
- lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb
Overview
OneAppTwoEnvs
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name = 'Two Apps', email = '[email protected]', pass = '2apps') ⇒ TwoApps
constructor
A new instance of TwoApps.
Constructor Details
#initialize(name = 'Two Apps', email = '[email protected]', pass = '2apps') ⇒ TwoApps
Returns a new instance of TwoApps.
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 262 263 264 265 266 267 268 |
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 227 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 |