diff options
Diffstat (limited to 'test/ral/providers')
-rwxr-xr-x | test/ral/providers/cron/crontab.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/group.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/host/netinfo.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/host/parsed.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/mailalias/aliases.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/mount/netinfo.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/mount/parsed.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/nameservice.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/package.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/parsedfile.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/port/parsed.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/provider.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/service.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/service/base.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/service/debian.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/sshkey/parsed.rb | 2 | ||||
-rwxr-xr-x | test/ral/providers/user.rb | 2 |
17 files changed, 17 insertions, 17 deletions
diff --git a/test/ral/providers/cron/crontab.rb b/test/ral/providers/cron/crontab.rb index bc32b839b..2da4b1b57 100755 --- a/test/ral/providers/cron/crontab.rb +++ b/test/ral/providers/cron/crontab.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' require 'mocha' diff --git a/test/ral/providers/group.rb b/test/ral/providers/group.rb index 2d5122da0..18b0866b9 100755 --- a/test/ral/providers/group.rb +++ b/test/ral/providers/group.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'etc' diff --git a/test/ral/providers/host/netinfo.rb b/test/ral/providers/host/netinfo.rb index f49a00beb..e513974fc 100755 --- a/test/ral/providers/host/netinfo.rb +++ b/test/ral/providers/host/netinfo.rb @@ -3,7 +3,7 @@ # Created by Luke Kanies on 2006-11-12. # Copyright (c) 2006. All rights reserved. -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' diff --git a/test/ral/providers/host/parsed.rb b/test/ral/providers/host/parsed.rb index 5499b0220..98c3acb2e 100755 --- a/test/ral/providers/host/parsed.rb +++ b/test/ral/providers/host/parsed.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'etc' require 'puppettest' diff --git a/test/ral/providers/mailalias/aliases.rb b/test/ral/providers/mailalias/aliases.rb index e54b6659a..663d4359c 100755 --- a/test/ral/providers/mailalias/aliases.rb +++ b/test/ral/providers/mailalias/aliases.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' require 'puppettest/fileparsing' diff --git a/test/ral/providers/mount/netinfo.rb b/test/ral/providers/mount/netinfo.rb index dc4316b8a..9a02bc471 100755 --- a/test/ral/providers/mount/netinfo.rb +++ b/test/ral/providers/mount/netinfo.rb @@ -3,7 +3,7 @@ # Created by Luke Kanies on 2006-11-12. # Copyright (c) 2006. All rights reserved. -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' # diff --git a/test/ral/providers/mount/parsed.rb b/test/ral/providers/mount/parsed.rb index 4fe644734..a7f1f5074 100755 --- a/test/ral/providers/mount/parsed.rb +++ b/test/ral/providers/mount/parsed.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'mocha' require 'puppettest' diff --git a/test/ral/providers/nameservice.rb b/test/ral/providers/nameservice.rb index f15e51d02..7b37cc594 100755 --- a/test/ral/providers/nameservice.rb +++ b/test/ral/providers/nameservice.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'puppet/provider/nameservice' diff --git a/test/ral/providers/package.rb b/test/ral/providers/package.rb index a0283b363..a602a4dab 100755 --- a/test/ral/providers/package.rb +++ b/test/ral/providers/package.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'etc' diff --git a/test/ral/providers/parsedfile.rb b/test/ral/providers/parsedfile.rb index 8a5982553..18fe70fd0 100755 --- a/test/ral/providers/parsedfile.rb +++ b/test/ral/providers/parsedfile.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'mocha' diff --git a/test/ral/providers/port/parsed.rb b/test/ral/providers/port/parsed.rb index b8237ad86..01ccd3d8c 100755 --- a/test/ral/providers/port/parsed.rb +++ b/test/ral/providers/port/parsed.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' #require 'puppettest/fileparsing' diff --git a/test/ral/providers/provider.rb b/test/ral/providers/provider.rb index ee7eb1bca..9aaf77783 100755 --- a/test/ral/providers/provider.rb +++ b/test/ral/providers/provider.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' require 'facter' diff --git a/test/ral/providers/service.rb b/test/ral/providers/service.rb index c4127146f..d527d4356 100755 --- a/test/ral/providers/service.rb +++ b/test/ral/providers/service.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' diff --git a/test/ral/providers/service/base.rb b/test/ral/providers/service/base.rb index 7300b77af..934127a10 100755 --- a/test/ral/providers/service/base.rb +++ b/test/ral/providers/service/base.rb @@ -3,7 +3,7 @@ # Created by Luke A. Kanies on 2007-01-28. # Copyright (c) 2007. All rights reserved. -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' diff --git a/test/ral/providers/service/debian.rb b/test/ral/providers/service/debian.rb index ed90f8fef..f6c0004ca 100755 --- a/test/ral/providers/service/debian.rb +++ b/test/ral/providers/service/debian.rb @@ -3,7 +3,7 @@ # Created by David Schmitt on 2007-09-13 # Copyright (c) 2007. All rights reserved. -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' diff --git a/test/ral/providers/sshkey/parsed.rb b/test/ral/providers/sshkey/parsed.rb index 017bb983f..b94b7a69a 100755 --- a/test/ral/providers/sshkey/parsed.rb +++ b/test/ral/providers/sshkey/parsed.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../../lib/puppettest' require 'puppettest' require 'puppettest/fileparsing' diff --git a/test/ral/providers/user.rb b/test/ral/providers/user.rb index 1c2fd2f1f..18886118c 100755 --- a/test/ral/providers/user.rb +++ b/test/ral/providers/user.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -$:.unshift("../../lib") if __FILE__ =~ /\.rb$/ +require File.dirname(__FILE__) + '/../../lib/puppettest' require 'puppettest' |