Class: Weneedfeed::Command
- Inherits:
-
Thor
- Object
- Thor
- Weneedfeed::Command
- Defined in:
- lib/weneedfeed/command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
Note:
Override for thor breaking change. See github.com/erikhuda/thor/issues/244.
11 12 13 |
# File 'lib/weneedfeed/command.rb', line 11 def exit_on_failure? true end |
Instance Method Details
#build ⇒ Object
37 38 39 40 41 42 |
# File 'lib/weneedfeed/command.rb', line 37 def build ::Weneedfeed::Capture.call( base_url: [:base_url], schema_path: [:schema_path] ) end |
#server ⇒ Object
63 64 65 66 |
# File 'lib/weneedfeed/command.rb', line 63 def server application = Weneedfeed::Application.new(schema_path: [:schema_path]) ::Rack::Handler.default.run(application, Port: [:port]) end |