Class: Gitrob::CLI::Commands::Server
- Inherits:
-
Gitrob::CLI::Command
- Object
- Gitrob::CLI::Command
- Gitrob::CLI::Commands::Server
- Defined in:
- lib/gitrob/cli/commands/server.rb
Instance Attribute Summary
Attributes inherited from Gitrob::CLI::Command
Instance Method Summary collapse
-
#initialize(options) ⇒ Server
constructor
A new instance of Server.
Methods inherited from Gitrob::CLI::Command
#debug, #debugging_enabled?, #error, #fatal, #info, #output, #progress_bar, start, #task, #thread_pool, #warn
Constructor Details
#initialize(options) ⇒ Server
Returns a new instance of Server.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gitrob/cli/commands/server.rb', line 5 def initialize() @options = info "Starting web application on port #{[:port]}..." if debugging_enabled? Sequel::Model.db.logger = QueryLogger.new(STDOUT) end Gitrob::WebApp.run!( :port => [:port].to_i, :bind => [:bind_address] ) end |