Module: Puppet::Util::LogPaths
Overview
Created by Luke Kanies on 2007-07-04.
Copyright (c) 2007. All rights reserved.
Instance Method Summary collapse
-
#path ⇒ Object
return the full path to us, for logging and rollback some classes (e.g., FileTypeRecords) will have to override this.
- #source_descriptors ⇒ Object
Instance Method Details
#path ⇒ Object
return the full path to us, for logging and rollback some classes (e.g., FileTypeRecords) will have to override this
7 8 9 10 11 |
# File 'lib/puppet/util/log_paths.rb', line 7 def path @path ||= pathbuilder "/" + @path.join("/") end |
#source_descriptors ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/puppet/util/log_paths.rb', line 13 def source_descriptors descriptors = {} descriptors[:tags] = [:path, :file, :line].each do |param| next unless value = send(param) descriptors[param] = value end descriptors end |