Class: BPM::Server
- Inherits:
-
Rack::Server
- Object
- Rack::Server
- BPM::Server
- Defined in:
- lib/bpm/server.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Class Method Summary collapse
Instance Method Summary collapse
- #app ⇒ Object
-
#initialize(project, options = {}) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(project, options = {}) ⇒ Server
Returns a new instance of Server.
9 10 11 12 13 14 15 |
# File 'lib/bpm/server.rb', line 9 def initialize(project, ={}) = .merge() [:server] ||= 'thin' @project = project @mode = [:mode] || :debug super end |
Instance Attribute Details
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
28 29 30 |
# File 'lib/bpm/server.rb', line 28 def mode @mode end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
27 28 29 |
# File 'lib/bpm/server.rb', line 27 def project @project end |
Class Method Details
.start(project, options = nil) ⇒ Object
17 18 19 |
# File 'lib/bpm/server.rb', line 17 def self.start(project, =nil) new(project, ).start end |