Class: Textus::Action::KeyDelete
- Defined in:
- lib/textus/action/key_delete.rb
Class Method Summary collapse
Methods inherited from Base
Methods included from Contract::DSL
#arg, #cli, #cli_stdin, #contract, #contract?, #summary, #surfaces, #verb, #view
Class Method Details
.call(container:, call:, key:, if_etag: nil) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/textus/action/key_delete.rb', line 16 def self.call(container:, call:, key:, if_etag: nil) Textus::Manifest::Data.validate_key!(key) mentry = container.manifest.resolver.resolve(key).entry container.compositor.delete(key, mentry: mentry, if_etag: if_etag, call: call) Success({ "protocol" => Textus::PROTOCOL, "ok" => true, "key" => key, "deleted" => true }) end |