Codebase list facter / 2029359
(packaging) Use the packaging loader for tasks The packaging repo now uses an explicit loader which handles loading the various rake tasks in packaging. This commit updates the facter Rakefile to use the loader instead of a blind glob of the ext/packaging/tasks directory. We move this load into the rescue LoadError block because the packaging repo won't always be there, and require 'rake' ahead of time. Moses Mendoza 10 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
55
66 $LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
77
8 require 'rake'
9
810 begin
11 load File.join(File.dirname(__FILE__), 'ext', 'packaging', 'packaging.rake')
912 require 'rubygems'
1013 require 'rspec'
1114 require 'rspec/core/rake_task'
1316 rescue LoadError
1417 end
1518
16 require 'rake'
17
1819 Dir['tasks/**/*.rake'].each { |t| load t }
19 Dir['ext/packaging/tasks/**/*'].sort.each { |t| load t }
2020
2121 build_defs_file = 'ext/build_defaults.yaml'
2222 if File.exist?(build_defs_file)