Class: Scenario::Base
- Inherits:
-
Object
- Object
- Scenario::Base
- Defined in:
- lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb
Direct Known Subclasses
AppWithoutEnv, LinkedApp, LinkedAppNotRunning, OneAppManyEnvs, OneAppManySimilarlyNamedEnvs, TwoApps, UnlinkedApp
Instance Attribute Summary collapse
-
#git_remote ⇒ Object
Returns the value of attribute git_remote.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(name = "User Name", email = "[email protected]", pass = "test") ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name = "User Name", email = "[email protected]", pass = "test") ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 8 def initialize(name = "User Name", email = "[email protected]", pass = "test") @git_remote = "[email protected]:path/to/repo.git" @user = User.create(:name => name, :email => email, :password => pass) @account = @user.accounts.create({"name" => "main"}) end |
Instance Attribute Details
#git_remote ⇒ Object
Returns the value of attribute git_remote.
5 6 7 |
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 5 def git_remote @git_remote end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
6 7 8 |
# File 'lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb', line 6 def user @user end |