072e519171
- removed all submodules I will create an openstack repo to hold all modules (including nova) as submodules - moved nova module to top dir
15 lines
504 B
Ruby
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
|