File: camelCaseFunction.rb

package info (click to toggle)
ruby-rspec-puppet 2.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,416 kB
  • sloc: ruby: 6,661; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
module Puppet::Parser::Functions
  newfunction(:camelCaseFunction, :type => :rvalue) do |args|
    raise Puppet::ParseError, "Requires 1 argument" unless args.length == 1
    raise Puppet::ParseError, "Argument must be a string" unless args.first.is_a?(String)
    return "test"
  end
end