Class: RosettAi::Thor::Tasks::Init
- Inherits:
-
Thor
- Object
- Thor
- RosettAi::Thor::Tasks::Init
- Defined in:
- lib/rosett_ai/thor/tasks/init.rb
Overview
Thor task for initializing rai project structure
Constant Summary collapse
- PROJECT_DIRS =
['conf', 'conf/behaviour', 'conf/design'].freeze
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rosett_ai/thor/tasks/init.rb', line 58 def setup raise ::Thor::Error, t('no_scope') unless [:global] || [:local] || [:project] results = { created: 0, ok: 0, skipped: 0 } setup_global(results) if [:global] setup_project(results) if [:project] setup_local(results) if [:local] run_compile unless [:no_compile] print_summary(results) end |