Class: Textus::CLI::Verb::Delete
- Inherits:
-
Textus::CLI::Verb
- Object
- Textus::CLI::Verb
- Textus::CLI::Verb::Delete
- Defined in:
- lib/textus/cli/verb/delete.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
8 9 10 11 12 |
# File 'lib/textus/cli/verb/delete.rb', line 8 def call(store) key = positional.shift or raise UsageError.new("delete requires a key") role = Role.resolve(flag: as_flag, env: ENV, root: store.root) emit(store.delete(key, if_etag: if_etag, as: role)) end |