Class: Textus::Jobs::Materialize

Inherits:
Base
  • Object
show all
Defined in:
lib/textus/jobs/materialize.rb

Constant Summary collapse

TYPE =
"materialize"

Instance Method Summary collapse

Methods inherited from Base

inherited

Constructor Details

#initialize(key:) ⇒ Materialize

Returns a new instance of Materialize.



8
9
10
11
# File 'lib/textus/jobs/materialize.rb', line 8

def initialize(key:)
  super()
  @key = key
end

Instance Method Details

#argsObject



13
# File 'lib/textus/jobs/materialize.rb', line 13

def args = { key: @key }

#call(container:, call:) ⇒ Object



15
16
17
# File 'lib/textus/jobs/materialize.rb', line 15

def call(container:, call:)
  Textus::Produce::Engine.converge(container: container, call: call, keys: [@key])
end