Class: Bow::Commands::Ping
- Inherits:
-
Bow::Command
- Object
- Bow::Command
- Bow::Commands::Ping
- Defined in:
- lib/bow/commands/ping.rb
Instance Attribute Summary
Attributes inherited from Bow::Command
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
#description ⇒ Object
6 7 8 |
# File 'lib/bow/commands/ping.rb', line 6 def description 'Check connectivity to all given hosts.' end |
#run ⇒ Object
10 11 12 13 |
# File 'lib/bow/commands/ping.rb', line 10 def run @argv << 'echo pong' Exec.new(@app, @argv).run end |