Class: Whosup::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/whosup/cli.rb

Constant Summary collapse

DEFAULT_PORT =
51703

Instance Method Summary collapse

Instance Method Details

#clientObject

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

#serverObject

method_option :port, aliases: “-p”, default: DEFAULT_PORT, required: true def server(port)



12
13
14
15
# File 'lib/whosup/cli.rb', line 12

def server
  Server.new.start(51703)
  # Server.new.start(port)
end