Class: Sumodev::Application
- Includes:
- Thor::Actions
- Defined in:
- lib/sumodev/application.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.host ⇒ Object
Returns the value of attribute host.
-
.log_file ⇒ Object
Returns the value of attribute log_file.
-
.login ⇒ Object
Returns the value of attribute login.
Instance Method Summary collapse
Methods inherited from Command
Class Attribute Details
.host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/sumodev/application.rb', line 8 def host @host end |
.log_file ⇒ Object
Returns the value of attribute log_file.
8 9 10 |
# File 'lib/sumodev/application.rb', line 8 def log_file @log_file end |
.login ⇒ Object
Returns the value of attribute login.
8 9 10 |
# File 'lib/sumodev/application.rb', line 8 def login @login end |
Instance Method Details
#console ⇒ Object
17 18 19 |
# File 'lib/sumodev/application.rb', line 17 def console remote "\"cd production && rails console production\"" end |
#log ⇒ Object
12 13 14 |
# File 'lib/sumodev/application.rb', line 12 def log remote "less #{self.class.log_file}" end |