Module: Staticme
- Included in:
- Staticme
- Defined in:
- lib/staticme.rb,
lib/staticme/app.rb,
lib/staticme/runner.rb,
lib/staticme/arguments.rb,
lib/staticme/thin_runner.rb
Defined Under Namespace
Modules: Arguments Classes: App, Runner, ThinRunner
Constant Summary
Constants included from Arguments
Instance Attribute Summary collapse
-
#runner ⇒ Object
Returns the value of attribute runner.
Instance Method Summary collapse
Methods included from Arguments
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
14 15 16 |
# File 'lib/staticme.rb', line 14 def runner @runner end |
Instance Method Details
#run!(argv, &blk) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/staticme.rb', line 16 def run!(argv, &blk) params = parse_input(argv) app = Staticme::App.new(params).bind runner = Staticme::ThinRunner.new runner.start(app, params, &blk) end |
#stop! ⇒ Object
28 29 30 |
# File 'lib/staticme.rb', line 28 def stop! runner.stop end |