Class: Whosup::CLI
- Inherits:
-
Thor
- Object
- Thor
- Whosup::CLI
- Defined in:
- lib/whosup/cli.rb
Constant Summary collapse
- DEFAULT_PORT =
51703
Instance Method Summary collapse
-
#client ⇒ Object
method_option :server, aliases: “-s”, required: true method_option :port, aliases: “-p”, default: DEFAULT_PORT, required: true def client(server, port).
-
#server ⇒ Object
method_option :port, aliases: “-p”, default: DEFAULT_PORT, required: true def server(port).
Instance Method Details
#client ⇒ Object
method_option :server, aliases: “-s”, required: true method_option :port, aliases: “-p”, default: DEFAULT_PORT, required: true def client(server, port)
21 22 23 24 |
# File 'lib/whosup/cli.rb', line 21 def client # Client.new.start(server, port) Client.new.start("192.168.2.54", 51703) end |