Class: Textus::CLI::Verb::Freshness
- Inherits:
-
Textus::CLI::Verb
- Object
- Textus::CLI::Verb
- Textus::CLI::Verb::Freshness
- Defined in:
- lib/textus/cli/verb/freshness.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
8 9 10 11 12 |
# File 'lib/textus/cli/verb/freshness.rb', line 8 def call(store) ctx = context_for(store) rows = Textus::Composition.freshness(ctx).call(prefix: prefix, zone: zone) emit({ "verb" => "freshness", "rows" => rows }) end |