Sha256: b14ae19629afcdc65e0929b1b5c81702438c2a2ab2a5cdeaf5df444a379a38b1
Contents?: true
Size: 830 Bytes
Versions: 43
Compression:
Stored size: 830 Bytes
Contents
require 'rack' module Dugway module Cli class Server < Thor::Group class_option :host, :type => :string, :aliases => '-h', :default => '127.0.0.1', :desc => 'The host address to bind to' class_option :port, :type => :numeric, :aliases => '-p', :default => 9292, :desc => "The port address to bind to" class_option :server, :type => :string, :aliases => '-s', :default => 'thin', :desc => "The server to run" def start Rack::Server.start({ :config => File.join(Dir.pwd, 'config.ru'), :environment => 'none', :Host => options[:host], :Port => options[:port], :server => options[:server] }) end end end end
Version data entries
43 entries across 43 versions & 1 rubygems