Sha256: 8cfd211dcfdceab4307a074b5fc971400ece7c1ca8939b7ae1a26a96386cb772

Contents?: true

Size: 660 Bytes

Versions: 4

Compression:

Stored size: 660 Bytes

Contents

#  Created by Luke Kanies on 2007-07-04.
#  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
        unless defined? @path
            @path = pathbuilder
        end

        return "/" + @path.join("/")
    end

    def source_descriptors
        descriptors = {}

        descriptors[:tags] = tags

        [:path, :file, :line, :version].each do |param|
            next unless value = send(param)
            descriptors[param] = value
        end

        return descriptors
    end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/util/log_paths.rb
puppet-0.25.4 lib/puppet/util/log_paths.rb
puppet-0.25.3 lib/puppet/util/log_paths.rb
puppet-0.25.2 lib/puppet/util/log_paths.rb