Class: Textus::CLI::Verb::KeyNormalize
- Inherits:
-
Textus::CLI::Verb
- Object
- Textus::CLI::Verb
- Textus::CLI::Verb::KeyNormalize
- Defined in:
- lib/textus/cli/verb/key_normalize.rb
Instance Attribute Summary
Attributes inherited from Textus::CLI::Verb
Instance Method Summary collapse
Methods inherited from Textus::CLI::Verb
command_name, #context_for, descendants, #emit, inherited, #initialize, needs_store?, #operations_for, option, options, parent_group, #parse, #resolved_role
Constructor Details
This class inherits a constructor from Textus::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
11 12 13 14 15 |
# File 'lib/textus/cli/verb/key_normalize.rb', line 11 def call(store) effective_write = write && !dry_run res = Textus::MigrateKeys.run(store, write: effective_write || false) emit(res, exit_code: res["ok"] ? 0 : 1) end |