Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Wrap text
Report abuse
module Puppet::Parser::Functions newfunction(:source_exists) do |args| dist = args[0] file = args[1] path = "/var/lib/puppet/dist/" + dist + file File.exists?(path) end
Pasted June 23, 200912:48PM EDT
Embed
Ads from Ruby Row