Class: RosettAi::Thor::Tasks::Compile
- Inherits:
-
Thor
- Object
- Thor
- RosettAi::Thor::Tasks::Compile
- Defined in:
- lib/rosett_ai/thor/tasks/compile.rb
Overview
Thor task for compiling YAML configuration into markdown rule files
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/rosett_ai/thor/tasks/compile.rb', line 81 def generate if [:locales] compile_locales return end check_xdg_migration compiler = build_compiler categories = compiler.discover_categories if categories.empty? puts Rainbow(t('compile.no_categories')).yellow return end log_categories(categories, compiler) if [:verbose] compiled = compiler.compile check_conflict_warnings(compiler) check_capabilities(resolve_engine_option) results = process_compiled(compiler, compiled) remove_orphans(compiler, compiled) write_lockfile(compiler, compiled) if [:vendor] && ![:simulate] print_summary(results) end |