Sha256: 716f88e9ef3836a37c3b09f423d4e34702f4d70389074c1b0b98664f1423ca5b
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
#!/usr/bin/env ruby #-- # (c) Copyright 2008-2010 Mikael Lammentausta # # Constructed heavily upon Warbler's structure. # Thanks to Nick Sieger! # # See the file LICENSES.txt included with the distribution for # software license details. #++ require 'rubygems' require 'rake' require 'caterpillar' application = Rake.application # Load any application rakefiles to aid in autodetecting applications Caterpillar.project_application = Rake::Application.new Rake.application = Caterpillar.project_application Rake::Application::DEFAULT_RAKEFILES.each do |rf| if File.exist?(rf) load rf break end end Rake.application = application application.standard_exception_handling do application.init # Load the main tasks - # if first argument is a Ruby (config) file, take the task name from second arg if ARGV[0] config = ARGV[0][/.rb$/] ? File.expand_path(ARGV.shift) : nil name = ARGV[0] ? ARGV[0].gsub(/:.*/,'') : nil Caterpillar::Task.new(name, config) else Caterpillar::Task.new(:usage) end task :default => :usage application.top_level end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
caterpillar-1.6.0 | bin/caterpillar |
caterpillar-1.4.4 | bin/caterpillar |
caterpillar-1.4.3 | bin/caterpillar |
caterpillar-1.4.2 | bin/caterpillar |