Class: AppCommand::GenerateUiRoutes
- Inherits:
-
Convoy::ActionCommand::Base
- Object
- Convoy::ActionCommand::Base
- AppCommand::GenerateUiRoutes
- Defined in:
- lib/routes/generate_ui_routes.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/routes/generate_ui_routes.rb', line 5 def execute begin @opts = @args = arguments opts_validate opts_routing rescue => e Blufin::Terminal::print_exception(e) end end |
#opts_routing ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/routes/generate_ui_routes.rb', line 27 def opts_routing projects = Blufin::Projects.get_projects_as_array(types: [Blufin::Projects::TYPE_QUASAR]) project = Blufin::Projects.show_project_prompt(projects) @errors, @warnings = Blufin::GenerateUiRoutes::run(project) Blufin::GenerateBase::exit_code_generation(@errors, @warnings) end |
#opts_validate ⇒ Object
23 24 25 |
# File 'lib/routes/generate_ui_routes.rb', line 23 def opts_validate end |