Class: BoPeep::Localhost
- Inherits:
-
Object
- Object
- BoPeep::Localhost
- Defined in:
- lib/bopeep.rb
Defined Under Namespace
Classes: CommandOutcome
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
591 592 593 |
# File 'lib/bopeep.rb', line 591 def address "localhost" end |
#run(callbacks: nil, log: false) ⇒ Object
595 596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/bopeep.rb', line 595 def run(callbacks: nil, log: false) outcome = CommandOutcome.new(callbacks: callbacks, log: log) begin outcome.command_started! yield rescue => error outcome.error = error end outcome.command_finished! outcome end |