Class: Bow::Commands::Ping

Inherits:
Bow::Command show all
Defined in:
lib/bow/commands/ping.rb

Instance Attribute Summary

Attributes inherited from Bow::Command

#app

Instance Method Summary collapse

Methods inherited from Bow::Command

#command_name, command_name, find, inherited, #initialize, #targets, #usage

Constructor Details

This class inherits a constructor from Bow::Command

Instance Method Details

#descriptionObject



6
7
8
# File 'lib/bow/commands/ping.rb', line 6

def description
  'Check connectivity to all given hosts.'
end

#runObject



10
11
12
13
# File 'lib/bow/commands/ping.rb', line 10

def run
  @argv << 'echo pong'
  Exec.new(@app, @argv).run
end