class Kontejner::CLI

Public Instance Methods

start() click to toggle source
# File lib/kontejner/cli.rb, line 15
def start
  server = Kontejner::Server.new(dns_options)
  server.start(server_options)
end

Private Instance Methods

dns_options() click to toggle source
# File lib/kontejner/cli.rb, line 22
def dns_options
  { domain: options[:domain], docker: options[:docker], ttl: options[:ttl] }
end
server_options() click to toggle source
# File lib/kontejner/cli.rb, line 26
def server_options
  address = options[:address]
  port = options[:port]

  { listen: [[:tcp, address, port], [:udp, address, port]] }
end