Sha256: 7e7ca6261a1d29c3bec301ea72e809aaa40c8e4ce98b6587165a08c725b8715c

Contents?: true

Size: 946 Bytes

Versions: 1

Compression:

Stored size: 946 Bytes

Contents

#!/usr/bin/env ruby
#
#--
# (c) Copyright 2008 Mikael Lammentausta, Cel'Amanzi Ltd
#               2010 Mikael Lammentausta, Youleaf Ltd
#
# 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 - choose the namespace
  Caterpillar::Task.new(ARGV[0] ? ARGV[0].gsub(/:.*/,'') : :usage)
  
  task :default => :usage

  application.top_level
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caterpillar-1.3.1 bin/caterpillar