class Scenario::LinkedApp
Public Class Methods
new(name = 'Linked App', email = 'linked.app@test.local', pass = 'linked')
click to toggle source
Calls superclass method
Scenario::Base::new
# File lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb, line 16 def initialize(name = 'Linked App', email = 'linked.app@test.local', 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
Private Instance Methods
_instances()
click to toggle source
# File lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb, line 35 def _instances [{ "role" => "app_master", "name" => nil, "status" => "running", "amazon_id" => 'i-ddbbdd92', "public_hostname" => "app_master_hostname.compute-1.amazonaws.com", }, { "name" => nil, "role" => "db_master", "status" => "running", "amazon_id" => "i-d4cdddbf", "public_hostname" => "db_master_hostname.compute-1.amazonaws.com", }, { "name" => "Slave I", "role" => "db_slave", "status" => "running", "amazon_id" => "i-asdfasdfaj", "public_hostname" => "db_slave_1_hostname.compute-1.amazonaws.com", }, { "name" => nil, "role" => "db_slave", "status" => "running", "amazon_id" => "i-asdfasdfaj", "public_hostname" => "db_slave_2_hostname.compute-1.amazonaws.com", }, { "role" => "app", "name" => nil, "status" => "building", "amazon_id" => "i-d2e3f1b9", "public_hostname" => "app_hostname.compute-1.amazonaws.com", }, { "role" => "util", "name" => "fluffy", "status" => "running", "amazon_id" => "i-80e3f1eb", "public_hostname" => "util_fluffy_hostname.compute-1.amazonaws.com", }, { "role" => "util", "name" => "rocky", "status" => "running", "amazon_id" => "i-80etf1eb", "public_hostname" => "util_rocky_hostname.compute-1.amazonaws.com", }] end