Sha256: bb190b52618a4d8a5f1b0f8242d009fb1174f395b745108b8379eb42f3a20b0b

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

module Gitrob
  class CLI
    module Commands
      class Server < Gitrob::CLI::Command
        def initialize(options)
          @options = options
          info "Starting web application on port #{options[:port]}..."

          if debugging_enabled?
            Sequel::Model.db.logger = QueryLogger.new(STDOUT)
          end

          Gitrob::WebApp.run!(
            :port => options[:port].to_i,
            :bind => options[:bind_address]
          )
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitrob-1.1.2 lib/gitrob/cli/commands/server.rb
gitrob-1.1.1 lib/gitrob/cli/commands/server.rb
gitrob-1.1.0 lib/gitrob/cli/commands/server.rb
gitrob-1.0.1 lib/gitrob/cli/commands/server.rb
gitrob-1.0.0 lib/gitrob/cli/commands/server.rb