Class: MeshChat::CLI::PingAll

Inherits:
Command show all
Defined in:
lib/meshchat/cli/ping_all.rb

Constant Summary

Constants inherited from Command

Command::ADD, Command::CHAT, Command::CONFIG, Command::CONNECT, Command::DISPLAY, Command::EXIT, Command::EXPORT, Command::IDENTITY, Command::IMPORT, Command::INIT, Command::IRB, Command::LISTEN, Command::PING, Command::PING_ALL, Command::QUIT, Command::REMOVE, Command::RM, Command::SERVER, Command::SERVERS, Command::SET, Command::SHARE, Command::STOP_LISTENING, Command::WHO

Constants inherited from Input

Input::COMMAND, Input::WHISPER

Instance Attribute Summary

Attributes inherited from Command

#_input

Attributes inherited from Input

#_input

Instance Method Summary collapse

Methods inherited from Input

create, #initialize, is_command, is_whisper?

Constructor Details

This class inherits a constructor from MeshChat::CLI::Input

Instance Method Details

#handleObject



4
5
6
7
8
# File 'lib/meshchat/cli/ping_all.rb', line 4

def handle
  Node.all.each do |n|
    Net::Client.send(node: n, message: Message::Ping.new)
  end
end