class CLI

Public Class Methods

run!(host = '127.0.0.1', port = 8000) click to toggle source
# File lib/nerd_flirt/cli.rb, line 16
def self.run!(host = '127.0.0.1', port = 8000)
  puts "---------------------------------------------"
  puts "NerdFlirt client connecting to #{host}:#{port}"
  puts "---------------------------------------------"
  NerdFlirt::Main.new.start
end
server(port) click to toggle source
# File lib/nerd_flirt/cli.rb, line 9
def self.server(port)
  puts "---------------------------------------------"
  puts "• Starting NerdFlirt server on port #{port.to_s}"
  NerdFlirt::Server.new(port)
end