Sha256: ab7aaf85afbb1207fdc954b9096e17a616680ae29eaf3d6a1e786273ec279d19

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 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
    @path ||= pathbuilder

    "/" + @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

    descriptors
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-2.6.4 lib/puppet/util/log_paths.rb
puppet-2.6.3 lib/puppet/util/log_paths.rb
puppet-2.6.2 lib/puppet/util/log_paths.rb
puppet-2.6.1 lib/puppet/util/log_paths.rb
puppet-2.6.0 lib/puppet/util/log_paths.rb