Class: PlanExecutor::Applicator

Inherits:
Object
  • Object
show all
Defined in:
lib/plan_executor/applicator.rb

Instance Method Summary collapse

Constructor Details

#initialize(inventory, executor, config) ⇒ Applicator

Returns a new instance of Applicator.



7
8
9
10
11
# File 'lib/plan_executor/applicator.rb', line 7

def initialize(inventory, executor, config)
  @inventory = inventory
  @executor = executor
  @config = config
end

Instance Method Details

#apply(_args, _apply_body, _scope) ⇒ Object



18
19
20
# File 'lib/plan_executor/applicator.rb', line 18

def apply(_args, _apply_body, _scope)
  raise_not_implemented("apply")
end

#build_plugin_tarballObject



22
23
24
# File 'lib/plan_executor/applicator.rb', line 22

def build_plugin_tarball
  raise_not_implemented("build_plugin_tarball")
end

#custom_facts_taskObject



26
27
28
# File 'lib/plan_executor/applicator.rb', line 26

def custom_facts_task
  raise_not_implemented('custom_facts_task')
end

#raise_not_implemented(feature) ⇒ Object

Raises:



13
14
15
16
# File 'lib/plan_executor/applicator.rb', line 13

def raise_not_implemented(feature)
  raise Bolt::Error.new("#{feature} not implemented for plan executor service.",
                        'bolt.plan-executor/not-implemented')
end