summaryrefslogtreecommitdiffstats
path: root/test/other/metrics.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/other/metrics.rb')
-rwxr-xr-xtest/other/metrics.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/other/metrics.rb b/test/other/metrics.rb
index 8f487e200..049d00093 100755
--- a/test/other/metrics.rb
+++ b/test/other/metrics.rb
@@ -1,4 +1,6 @@
-#!/usr/bin/env ruby -I../lib -I../../lib
+#!/usr/bin/env ruby
+
+$:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/
require 'puppet/metric'
require 'puppet'