Class: Warg::Localhost

Inherits:
Object
  • Object
show all
Defined in:
lib/warg.rb

Defined Under Namespace

Classes: CommandOutcome

Instance Method Summary collapse

Instance Method Details

#addressObject



578
579
580
# File 'lib/warg.rb', line 578

def address
  "localhost"
end

#runObject



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