Class: Textus::Action::Where

Inherits:
Base
  • Object
show all
Defined in:
lib/textus/action/where.rb

Class Method Summary collapse

Methods inherited from Base

inherited, proposal_from

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