class Itamae::Recipe::RecipeFromDefinition
Attributes
definition[RW]
Public Instance Methods
load(vars = {})
click to toggle source
# File lib/itamae/recipe.rb, line 176 def load(vars = {}) context = EvalContext.new(self, vars) context.instance_eval(&@definition.class.definition_block) end
run()
click to toggle source
Calls superclass method
Itamae::Recipe#run
# File lib/itamae/recipe.rb, line 181 def run if @definition.do_not_run_because_of_only_if? Itamae.logger.debug "#{@definition.resource_type}[#{@definition.resource_name}] Execution skipped because of only_if attribute" return elsif @definition.do_not_run_because_of_not_if? Itamae.logger.debug "#{@definition.resource_type}[#{@definition.resource_name}] Execution skipped because of not_if attribute" return end super end