Class: Plum::Rack::CLI
- Inherits:
-
Object
- Object
- Plum::Rack::CLI
- Defined in:
- lib/plum/rack/cli.rb
Overview
CLI runner. Parses command line options and start ::Plum::Rack::Server.
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
Creates new CLI runner and parses command line.
-
#run ⇒ Object
Starts ::Plum::Rack::Server.
Constructor Details
#initialize(argv) ⇒ CLI
Creates new CLI runner and parses command line.
12 13 14 15 16 17 |
# File 'lib/plum/rack/cli.rb', line 12 def initialize(argv) @argv = argv = {} parse! end |
Instance Method Details
#run ⇒ Object
Starts ::Plum::Rack::Server
20 21 22 |
# File 'lib/plum/rack/cli.rb', line 20 def run @server.start end |