Sha256: 81eace35f900adddf96751d4974ced9da48e3def8588546f99828cd6e5df4c21

Contents?: true

Size: 330 Bytes

Versions: 276

Compression:

Stored size: 330 Bytes

Contents

Puppet::Parser::Functions::newfunction(
    :fail,
    :arity => -1,
    :doc   => <<DOC
Fail with a parse error. Any parameters will be stringified,
concatenated, and passed to the exception-handler.
DOC
) do |vals|
    vals = vals.collect { |s| s.to_s }.join(" ") if vals.is_a? Array
    raise Puppet::ParseError, vals.to_s
end

Version data entries

276 entries across 276 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/parser/functions/fail.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/functions/fail.rb
puppet-7.33.0 lib/puppet/parser/functions/fail.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/functions/fail.rb
puppet-7.32.1 lib/puppet/parser/functions/fail.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/functions/fail.rb
puppet-7.31.0 lib/puppet/parser/functions/fail.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/functions/fail.rb
puppet-7.30.0 lib/puppet/parser/functions/fail.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/functions/fail.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/functions/fail.rb