Class: Esp::CLI::I18nCli
- Inherits:
-
Thor
- Object
- Thor
- Esp::CLI::I18nCli
- Includes:
- Support
- Defined in:
- lib/esp/cli/i18n.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
9 |
# File 'lib/esp/cli/i18n.rb', line 9 def self.exit_on_failure? = true |
Instance Method Details
#audit ⇒ Object
24 25 26 27 28 29 |
# File 'lib/esp/cli/i18n.rb', line 24 def audit report = Esp::UI.audit respond(report) { render_audit(report) } problems = report[:undefined].size + report[:unused].size + report[:orphans].size exit(1) if problems.positive? end |
#check(mod) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/esp/cli/i18n.rb', line 16 def check(mod) result = Esp::Operations.dispatch(:i18n_check, params_with_root('mod' => mod)) respond(result) { render(result[:locales]) } rescue Esp::Operations::InputError, Esp::Mw::Loader::LoadError => e fail_with(e.) end |