Sha256: b7f5528ca867070f4fde0a2cc803140d08971f2daa6cf61ef80815f4adaafff3

Contents?: true

Size: 540 Bytes

Versions: 16

Compression:

Stored size: 540 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].each do |param|
      next unless value = send(param)
      descriptors[param] = value
    end

    descriptors
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-2.6.18 lib/puppet/util/log_paths.rb
puppet-2.6.17 lib/puppet/util/log_paths.rb
puppet-2.6.16 lib/puppet/util/log_paths.rb
puppet-2.6.15 lib/puppet/util/log_paths.rb
puppet-2.6.14 lib/puppet/util/log_paths.rb
puppet-2.6.13 lib/puppet/util/log_paths.rb
puppet-2.6.12 lib/puppet/util/log_paths.rb
puppet-2.6.11 lib/puppet/util/log_paths.rb
puppet-2.6.10 lib/puppet/util/log_paths.rb
puppet-2.7.3 lib/puppet/util/log_paths.rb
puppet-2.7.1 lib/puppet/util/log_paths.rb
puppet-2.6.9 lib/puppet/util/log_paths.rb
puppet-2.6.8 lib/puppet/util/log_paths.rb
puppet-2.6.7 lib/puppet/util/log_paths.rb
puppet-2.6.6 lib/puppet/util/log_paths.rb
puppet-2.6.5 lib/puppet/util/log_paths.rb