Class: Bolt::PAL::YamlPlan::Step::Message

Inherits:
Bolt::PAL::YamlPlan::Step show all
Defined in:
lib/bolt/pal/yaml_plan/step/message.rb

Constant Summary

Constants inherited from Bolt::PAL::YamlPlan::Step

STEP_KEYS

Instance Attribute Summary

Attributes inherited from Bolt::PAL::YamlPlan::Step

#body

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Bolt::PAL::YamlPlan::Step

create, #evaluate, #initialize, option_keys, parse_code_string, validate, validate_puppet_code, validate_step_keys

Constructor Details

This class inherits a constructor from Bolt::PAL::YamlPlan::Step

Class Method Details

.allowed_keysObject



8
9
10
# File 'lib/bolt/pal/yaml_plan/step/message.rb', line 8

def self.allowed_keys
  super + Set['message']
end

.required_keysObject



12
13
14
# File 'lib/bolt/pal/yaml_plan/step/message.rb', line 12

def self.required_keys
  Set['message']
end

Instance Method Details

#transpileObject

Transpiles the step into the plan language



30
31
32
33
34
# File 'lib/bolt/pal/yaml_plan/step/message.rb', line 30

def transpile
  code = String.new("  ")
  code << function_call(function, format_args(body))
  code << "\n"
end