Class: Warg::Localhost
- Inherits:
-
Object
- Object
- Warg::Localhost
- Defined in:
- lib/warg.rb
Defined Under Namespace
Classes: CommandOutcome
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
578 579 580 |
# File 'lib/warg.rb', line 578 def address "localhost" end |
#run ⇒ Object
582 583 584 585 586 587 588 589 590 591 592 593 594 595 |
# File 'lib/warg.rb', line 582 def run outcome = CommandOutcome.new begin outcome.command_started! yield rescue => error outcome.error = error end outcome.command_finished! outcome end |