Class: ConfCtl::HealthChecks::RunCommand
- Defined in:
- lib/confctl/health_checks/run_command.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(machine, command, remote:) ⇒ RunCommand
constructor
A new instance of RunCommand.
Methods inherited from Base
Constructor Details
#initialize(machine, command, remote:) ⇒ RunCommand
Returns a new instance of RunCommand.
102 103 104 105 106 |
# File 'lib/confctl/health_checks/run_command.rb', line 102 def initialize(machine, command, remote:) super(machine) @command = command @remote = remote end |
Instance Method Details
#description ⇒ Object
108 109 110 111 112 113 114 |
# File 'lib/confctl/health_checks/run_command.rb', line 108 def description if @command.description.empty? @command.to_s else @command.description end end |