Class: Uma::CLI::Serve
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(argv, env) ⇒ Serve
constructor
A new instance of Serve.
- #run ⇒ Object
Methods inherited from Base
Constructor Details
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
125 126 127 |
# File 'lib/uma/cli.rb', line 125 def server @server end |
Instance Method Details
#run ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/uma/cli.rb', line 133 def run parse_argv (@env[:io_err], SERVE_BANNER) @server.start rescue => e if env[:error_handler] env[:error_handler].(e) else ErrorResponse.new(e, @argv, @env).run end ensure @server.stop end |