class Shaf::Command::Server
Public Class Methods
options(parser, options)
click to toggle source
# File lib/shaf/command/server.rb, line 10 def self.options(parser, options) parser.on('-p', '--port PORT', Integer, 'Listen port') do |p| options[:port] = p end end
Public Instance Methods
call()
click to toggle source
# File lib/shaf/command/server.rb, line 16 def call Settings.port = options[:port] if options[:port] bootstrap App.run! end