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

Version Path
inesita-1.0.pre.9 lib/inesita/cli/server.rb
inesita-1.0.pre.8 lib/inesita/cli/server.rb
inesita-1.0.pre.7 lib/inesita/cli/server.rb
inesita-1.0.pre.6 lib/inesita/cli/server.rb
inesita-1.0.pre.5 lib/inesita/cli/server.rb
inesita-1.0.pre.4 lib/inesita/cli/server.rb
inesita-1.0.pre.3 lib/inesita/cli/server.rb
inesita-1.0.pre.2 lib/inesita/cli/server.rb
inesita-1.0.pre.1 lib/inesita/cli/server.rb
inesita-0.9.2 lib/inesita/cli/server.rb
inesita-0.9.1 lib/inesita/cli/server.rb
inesita-0.9.0 lib/inesita/cli/server.rb
inesita-0.8.2 lib/inesita/cli/server.rb
inesita-0.8.1 lib/inesita/cli/server.rb
inesita-0.7.0 lib/inesita/cli/server.rb