Class: Textus::CLI::Verb::RefreshStale
- Inherits:
-
Textus::CLI::Verb
- Object
- Textus::CLI::Verb
- Textus::CLI::Verb::RefreshStale
- Defined in:
- lib/textus/cli/verb/refresh_stale.rb
Instance Attribute Summary
Attributes inherited from Textus::CLI::Verb
Instance Method Summary collapse
Methods inherited from Textus::CLI::Verb
#emit, inherited, #initialize, needs_store?, option, options, #parse
Constructor Details
This class inherits a constructor from Textus::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/textus/cli/verb/refresh_stale.rb', line 9 def call(store) role = Role.resolve(flag: as_flag, env: ENV, root: store.root) ctx = Textus::Composition.context(store, role: role) result = Textus::Application::Refresh::All.call(ctx, prefix: prefix, zone: zone) emit(result) exit(1) unless result["ok"] end |