Class: Textus::Read::Where
- Inherits:
-
Object
- Object
- Textus::Read::Where
- Extended by:
- Contract::DSL
- Defined in:
- lib/textus/read/where.rb
Instance Method Summary collapse
- #call(key) ⇒ Object
-
#initialize(container:, call: nil) ⇒ Where
constructor
rubocop:disable Lint/UnusedMethodArgument.
Methods included from Contract::DSL
arg, around, cli, cli_stdin, contract, contract?, summary, surfaces, verb, view
Constructor Details
#initialize(container:, call: nil) ⇒ Where
rubocop:disable Lint/UnusedMethodArgument
12 13 14 |
# File 'lib/textus/read/where.rb', line 12 def initialize(container:, call: nil) # rubocop:disable Lint/UnusedMethodArgument @manifest = container.manifest end |
Instance Method Details
#call(key) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/textus/read/where.rb', line 16 def call(key) res = @manifest.resolver.resolve(key) mentry = res.entry path = res.path { "protocol" => PROTOCOL, "key" => key, "zone" => mentry.zone, "owner" => mentry.owner, "path" => path } end |