Class: Textus::Action::Where
Class Method Summary collapse
-
.call(container:, key:, call: nil) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods inherited from Base
Methods included from Contract::DSL
#arg, #cli, #cli_stdin, #contract, #contract?, #summary, #surfaces, #verb, #view
Class Method Details
.call(container:, key:, call: nil) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
12 13 14 15 16 17 18 |
# File 'lib/textus/action/where.rb', line 12 def self.call(container:, key:, call: nil) # rubocop:disable Lint/UnusedMethodArgument manifest = container.manifest res = manifest.resolver.resolve(key) mentry = res.entry path = res.path Success({ "protocol" => Textus::PROTOCOL, "key" => key, "lane" => mentry.lane, "owner" => mentry.owner, "path" => path }) end |