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