Skip to content

Instantly share code, notes, and snippets.

@jpadams
Created November 28, 2013 07:22
Show Gist options
  • Save jpadams/7688381 to your computer and use it in GitHub Desktop.
Save jpadams/7688381 to your computer and use it in GitHub Desktop.
module Puppet::Parser::Functions
newfunction(:tr_filename, :type => :rvalue) do |args|
name = args[0]
name.downcase.tr(" ", "_")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment