Sha256: 7aae6109295d0d6c0b9e9c42daddce43c18df593a2c8f96e71fb1ed268530203
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
#! /usr/bin/ruby require 'daemons' require 'autobuild' include Autobuild DEFAULT_HTTP_PORT = 2000 # Load the command line options conffile, *packages = Autobuild.commandline(ARGV) # make conffile an absolute path since daemonize mode makes # / the current directory conffile = File.expand_path(conffile, Dir.pwd) if Autobuild.daemonize puts "Going into daemon mode ..." Daemons.daemonize end Reporting << StdoutReporter.new begin Reporting.report do load conffile if Autobuild.mail[:to] Reporting << MailReporter.new(Autobuild.mail) end ['import', 'prepare', 'build'].each do |phase| if packages.empty? Rake::Task[phase].invoke else packages.each do |pkg| Rake::Task["#{pkg}-#{phase}"].invoke end end end Reporting.success end rescue Interrupt end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autobuild-0.6 | bin/autobuild |