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
#context_for, #emit, inherited, #initialize, needs_store?, option, options, #parse, #resolved_role
Constructor Details
This class inherits a constructor from Textus::CLI::Verb
Instance Method Details
#call(store) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/textus/cli/verb/refresh_stale.rb', line 9 def call(store) ctx = context_for(store) result = Textus::Application::Refresh::All.call(ctx, prefix: prefix, zone: zone) emit(result) exit(1) unless result["ok"] end |