Sha256: 1a6c3653f93ae89bcffcea8c2cc61b297fb104c30de81d6a51ccf03f494c844f

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

#! /usr/bin/env ruby

begin
    require 'daemons'
rescue LoadError # rubocop:disable Lint/HandleExceptions
end

require 'autobuild'

# rubocop:disable Style/MixinUsage
include Autobuild
# rubocop:enable Style/MixinUsage

DEFAULT_HTTP_PORT = 2000

# Load the command line options
conffile, *packages = Autobuild.commandline(ARGV)
Autobuild.packages = packages

# 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

        packages = Autobuild.packages
        packages = Autobuild.default_packages if packages.empty?

        Autobuild.apply(packages)
        Reporting.success
    end
rescue ThreadError
    STDERR.puts "Rake failed with a ThreadError"
    STDERR.puts "You may have a circular dependency in your packages"
rescue Interrupt
    STDERR.puts "interrupted"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
autobuild-1.21.0 bin/autobuild
autobuild-1.20.0 bin/autobuild
autobuild-1.19.0 bin/autobuild
autobuild-1.18.1 bin/autobuild
autobuild-1.18.0 bin/autobuild