Method: PDK::Generate::PuppetObject#check_preconditions
- Defined in:
- lib/pdk/generate/puppet_object.rb
#check_preconditions ⇒ void
This method is abstract.
This method returns an undefined value.
Raises an error if any pre-conditions are not met
63 64 65 |
# File 'lib/pdk/generate/puppet_object.rb', line 63 def check_preconditions raise ArgumentError, 'Expected a module context but got %{context_name}' % { context_name: context.display_name } unless context.is_a?(PDK::Context::Module) end |