Sha256: 143de19fdfe5d2308e86a38fa5bf116013a2e38dbe69cf6bfd689bd74de0120f

Contents?: true

Size: 454 Bytes

Versions: 25

Compression:

Stored size: 454 Bytes

Contents

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

25 entries across 25 versions & 3 rubygems

Version Path
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/util/log_paths.rb
puppet-2.7.19 lib/puppet/util/log_paths.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/lib/puppet/util/log_paths.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
puppet-2.7.18 lib/puppet/util/log_paths.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
puppet-2.7.17 lib/puppet/util/log_paths.rb
puppet-2.7.16 lib/puppet/util/log_paths.rb
puppet-2.7.14 lib/puppet/util/log_paths.rb
puppet-2.7.13 lib/puppet/util/log_paths.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
puppet-2.7.12 lib/puppet/util/log_paths.rb
puppet-2.7.11 lib/puppet/util/log_paths.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/util/log_paths.rb