Sha256: 59a4bfbce48ac07182bfc4583ce14e4885df2714db58f78ab75bfd1675d0de72
Contents?: true
Size: 638 Bytes
Versions: 15
Compression:
Stored size: 638 Bytes
Contents
module Inesita class CLI < Thor check_unknown_options! namespace :server desc 'server [OPTIONS]', 'Starts Inesita server' method_option :port, aliases: :p, type: :numeric, default: 9292, desc: 'The port Inesita will listen on' method_option :host, aliases: :h, type: :string, 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
15 entries across 15 versions & 1 rubygems