Moved RRD feature from util/metric.rb to feature/base.rb

This commit is contained in:
James Turnbull 2008-11-17 21:07:08 +11:00
Родитель dc192b00dc
Коммит 030c791364
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,6 @@
0.24.x 0.24.x
Moved RRD feature from util/metric.rb to feature/base.rb
Fixed #1735 and #1747 - Fixes to confine system Fixed #1735 and #1747 - Fixes to confine system
Fixed #1681 - Add filesystem type check to test for per-file SELinux context support Fixed #1681 - Add filesystem type check to test for per-file SELinux context support

Просмотреть файл

@ -25,3 +25,6 @@ Puppet.features.add :diff, :libs => %w{diff/lcs diff/lcs/hunk}
# We have augeas # We have augeas
Puppet.features.add(:augeas, :libs => ["augeas"]) Puppet.features.add(:augeas, :libs => ["augeas"])
# We have RRD available
Puppet.features.add(:rrd, :libs => ["RRDtool"])

Просмотреть файл

@ -4,11 +4,6 @@ require 'puppet'
# A class for handling metrics. This is currently ridiculously hackish. # A class for handling metrics. This is currently ridiculously hackish.
class Puppet::Util::Metric class Puppet::Util::Metric
# Load the library as a feature, so we can test its presence.
# It's only used by this class, so there's no reason to move it
# to the main feature list.
Puppet.features.add :rrd, :libs => 'RRDtool'
attr_accessor :type, :name, :value, :label attr_accessor :type, :name, :value, :label
attr_writer :values attr_writer :values