Class: Machines::LogCommand
- Defined in:
- lib/machines/log_command.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Command
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(name, description) ⇒ LogCommand
constructor
A new instance of LogCommand.
- #run ⇒ Object
Methods inherited from Command
scp, scp=, ssh, ssh=, #use_sudo
Constructor Details
#initialize(name, description) ⇒ LogCommand
Returns a new instance of LogCommand.
5 6 7 8 |
# File 'lib/machines/log_command.rb', line 5 def initialize name, description @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/machines/log_command.rb', line 3 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/machines/log_command.rb', line 3 def name @name end |
Instance Method Details
#info ⇒ Object
17 18 19 |
# File 'lib/machines/log_command.rb', line 17 def info "TASK #{@name} - #{@description}" end |