Exception: PuppetRepl::Exception::NodeDefinitionError

Inherits:
FatalError
  • Object
show all
Defined in:
lib/puppet-repl/support/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#data

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from PuppetRepl::Exception::Error

Instance Method Details

#messageObject



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/puppet-repl/support/errors.rb', line 52

def message
  out = <<-EOF
You are missing a default node definition in your site.pp that is required for compilation.
Please ensure you have at least the following default node definition
  node default {
    # include classes here
  }
in your #{data[:default_site_manifest]} file.
EOF
  out.fatal
end