summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/log_paths.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/log_paths.rb')
-rw-r--r--lib/puppet/util/log_paths.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/puppet/util/log_paths.rb b/lib/puppet/util/log_paths.rb
index e09ceb7fa..f59197ed1 100644
--- a/lib/puppet/util/log_paths.rb
+++ b/lib/puppet/util/log_paths.rb
@@ -2,26 +2,26 @@
# Copyright (c) 2007. All rights reserved.
module Puppet::Util::LogPaths
- # return the full path to us, for logging and rollback
- # some classes (e.g., FileTypeRecords) will have to override this
- def path
- @path ||= pathbuilder
+ # return the full path to us, for logging and rollback
+ # some classes (e.g., FileTypeRecords) will have to override this
+ def path
+ @path ||= pathbuilder
- "/" + @path.join("/")
- end
-
- def source_descriptors
- descriptors = {}
+ "/" + @path.join("/")
+ end
- descriptors[:tags] = tags
+ def source_descriptors
+ descriptors = {}
- [:path, :file, :line, :version].each do |param|
- next unless value = send(param)
- descriptors[param] = value
- end
+ descriptors[:tags] = tags
- descriptors
+ [:path, :file, :line, :version].each do |param|
+ next unless value = send(param)
+ descriptors[param] = value
end
+ descriptors
+ end
+
end