puppet-nova/spec/find_spec_utils.rb
Dan Bode 072e519171 Converted into nova module repo.
- removed all submodules
  I will create an openstack repo to
  hold all modules (including nova) as
  submodules
- moved nova module to top dir
2011-06-16 20:29:58 -07:00

15 lines
504 B
Ruby

def find_puppet_spec()
puppetdir = $LOAD_PATH.detect do |file|
File.directory?(File.join(file, 'puppet')) &&
File.directory?(File.join(file, '../spec/lib'))
end
raise Exception, "could not find puppet spec lib" unless puppetdir
$LOAD_PATH.unshift(File.join(puppetdir, '../spec/lib'))
$LOAD_PATH.unshift(File.join(puppetdir, '../spec'))
require File.join(puppetdir, '../spec/spec_helper')
end
find_puppet_spec
require 'puppet_spec/files'
include PuppetSpec
include PuppetSpec::Files