Sha256: 2c5b982d239f9a812f5077b1af6243600836bd1190944f9db34cfd93b66574ca
Contents?: true
Size: 571 Bytes
Versions: 8
Compression:
Stored size: 571 Bytes
Contents
module Inesita class CLI < Thor check_unknown_options! namespace :server desc 'server [OPTIONS]', 'Starts Inesita server' method_option :port, aliases: :p, default: 9292, desc: 'The port Inesita will listen on' method_option :host, aliases: :h, default: '127.0.0.1', desc: 'The host address Inesita will bind to' def server Rack::Server.start config: 'config.ru', Port: options['port'], Host: options['host'] end end end
Version data entries
8 entries across 8 versions & 1 rubygems