Skip to content

Instantly share code, notes, and snippets.

@raphink
Created November 18, 2013 15:26
Show Gist options
  • Select an option

  • Save raphink/7529624 to your computer and use it in GitHub Desktop.

Select an option

Save raphink/7529624 to your computer and use it in GitHub Desktop.
1.9.2-p320 :001 > require 'puppet/file_serving/metadata'
=> true
1.9.2-p320 :002 > metadata = Puppet::FileServing::Metadata.new('/etc/passwd', :path => '/etc/passwd')
=> #<Puppet::FileServing::Metadata:0x00000003ec5538 @owner=nil, @group=nil, @mode=nil, @checksum_type="md5", @ftype=nil, @destination=nil, @path="/etc/passwd", @links=:manage>
1.9.2-p320 :003 > metadata.collect
=> "{md5}dddc7650ed8195d4c3738c4bbe1beebd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment