File: nil_function.rb

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 186 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
Puppet::Functions.create_function(:nil_function) do
  def nil_function(should_raise)
    if should_raise
      raise Puppet::ParseError, 'Forced Failure - new version'
    end
  end
end