diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-17 18:10:30 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:25 -0600 |
| commit | b6db54585177f277b1e06bebd4d925d5c272b610 (patch) | |
| tree | ad09cf88c2bd2293bee9a33d88df21734e57b8c3 /test/util | |
| parent | 89c25ad0661fbc1d57830f4648a3b108f4347278 (diff) | |
| download | puppet-b6db54585177f277b1e06bebd4d925d5c272b610.tar.gz puppet-b6db54585177f277b1e06bebd4d925d5c272b610.tar.xz puppet-b6db54585177f277b1e06bebd4d925d5c272b610.zip | |
Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.type
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/util')
| -rwxr-xr-x | test/util/log.rb | 2 | ||||
| -rwxr-xr-x | test/util/metrics.rb | 2 | ||||
| -rwxr-xr-x | test/util/storage.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/util/log.rb b/test/util/log.rb index 8c7703cb9..6b670c2bc 100755 --- a/test/util/log.rb +++ b/test/util/log.rb @@ -129,7 +129,7 @@ class TestLog < Test::Unit::TestCase # Verify that the error and source are always strings def test_argsAreStrings msg = nil - file = Puppet.type(:file).create( + file = Puppet::Type.type(:file).create( :path => tempfile(), :check => %w{owner group} ) diff --git a/test/util/metrics.rb b/test/util/metrics.rb index b0ac1e2f5..b3219fc1a 100755 --- a/test/util/metrics.rb +++ b/test/util/metrics.rb @@ -17,7 +17,7 @@ class TestMetric < PuppetTest::TestCase eventmax = 10 maxdiff = 10 - types = [Puppet.type(:file), Puppet.type(:package), Puppet.type(:package)] + types = [Puppet::Type.type(:file), Puppet::Type.type(:package), Puppet::Type.type(:package)] data = [:total, :managed, :outofsync, :changed, :totalchanges] events = [:file_changed, :package_installed, :service_started] diff --git a/test/util/storage.rb b/test/util/storage.rb index 5634a94f6..11c53a56a 100755 --- a/test/util/storage.rb +++ b/test/util/storage.rb @@ -12,7 +12,7 @@ class TestStorage < Test::Unit::TestCase path = tempfile() File.open(path, "w") { |f| f.puts :yayness } - f = Puppet.type(:file).create( + f = Puppet::Type.type(:file).create( :name => path, :check => %w{checksum type} ) |
