Class: Mode::Commands::Login
- Inherits:
-
Thor
- Object
- Thor
- Mode::Commands::Login
- Defined in:
- lib/mode/commands/login.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Login
constructor
A new instance of Login.
Constructor Details
#initialize(options = {}) ⇒ Login
Returns a new instance of Login.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mode/commands/login.rb', line 7 def initialize( = {}) @options = if [:test] @environment = :test elsif [:staging] @environment = :staging elsif [:development] @environment = :development else @environment = :production end end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
5 6 7 |
# File 'lib/mode/commands/login.rb', line 5 def environment @environment end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/mode/commands/login.rb', line 4 def @options end |