Class: Textus::CLI::Verb::Refresh

Inherits:
Textus::CLI::Verb show all
Defined in:
lib/textus/cli/verb/refresh.rb

Instance Attribute Summary

Attributes inherited from Textus::CLI::Verb

#positional

Instance Method Summary collapse

Methods inherited from Textus::CLI::Verb

#context_for, #emit, inherited, #initialize, needs_store?, #operations_for, option, options, #parse, #resolved_role

Constructor Details

This class inherits a constructor from Textus::CLI::Verb

Instance Method Details

#call(store) ⇒ Object



7
8
9
10
# File 'lib/textus/cli/verb/refresh.rb', line 7

def call(store)
  key = positional.shift or raise UsageError.new("refresh requires a key")
  emit(operations_for(store).refresh.worker.run(key).to_h_for_wire)
end