Guest User

Untitled

a guest
Oct 6th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. require"puppet"
  2. module Puppet::Parser::Functions
  3. newfunction(:file_exists, :type => :rvalue) do |args|
  4. if File.exists?(args[0])
  5. return 1
  6. else
  7. return 0
  8. end
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment