1 build_defs_file = File.join(RAKE_ROOT, 'ext', 'build_defaults.yaml')
2 if File.exist?(build_defs_file)
5 @build_defaults ||= YAML.load_file(build_defs_file)
7 STDERR.puts "Unable to load yaml from #{build_defs_file}:"
10 @packaging_url = @build_defaults['packaging_url']
11 @packaging_repo = @build_defaults['packaging_repo']
12 raise "Could not find packaging url in #{build_defs_file}" if @packaging_url.nil?
13 raise "Could not find packaging repo in #{build_defs_file}" if @packaging_repo.nil?
16 desc "Bootstrap packaging automation, e.g. clone into packaging repo"
18 if File.exist?(File.join(RAKE_ROOT, "ext", @packaging_repo))
19 puts "It looks like you already have ext/#{@packaging_repo}. If you don't like it, blow it away with package:implode."
21 cd File.join(RAKE_ROOT, 'ext') do
22 %x{git clone #{@packaging_url}}
26 desc "Remove all cloned packaging automation"
28 rm_rf File.join(RAKE_ROOT, "ext", @packaging_repo)
34 load File.join(RAKE_ROOT, 'ext', 'packaging', 'packaging.rake')