Sha256: 9422360c844b2dfaaa08b179e4ed31876cdd8fc7a09d47181dfe52ff63ba09d0

Contents?: true

Size: 1.91 KB

Versions: 14

Compression:

Stored size: 1.91 KB

Contents

#!/usr/bin/env ruby
#
#--
# (c) Copyright 2007-2008 Sun Microsystems, Inc.
# See the file LICENSES.txt included with the distribution for
# software license details.
#++

require 'rubygems'
require 'rake'
require 'warbler'

application = Rake.application

# Load any application rakefiles to aid in autodetecting applications
Warbler.project_application = Rake::Application.new
Rake.application = Warbler.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 warbler tasks
  Warbler::Task.new

  task :default => :war

  desc "Generate a configuration file to customize your war assembly"
  task :config do
    if File.exists?(Warbler::Config::FILE) && ENV["FORCE"].nil?
      puts "There's another bird sitting on my favorite branch"
      puts "(file '#{Warbler::Config::FILE}' already exists. Pass argument FORCE=1 to override)"
    elsif !File.directory?("config")
      puts "I'm confused; my favorite branch is missing"
      puts "(directory 'config' is missing)"
    else
      cp "#{Warbler::WARBLER_HOME}/generators/warble/templates/warble.rb", Warbler::Config::FILE
    end
  end

  desc "Unpack warbler as a plugin in your Rails application"
  task :pluginize do
    if !Dir["vendor/plugins/warbler*"].empty?
      puts "I found an old nest in vendor/plugins; please trash it so I can make a new one"
      puts "(directory vendor/plugins/warbler* exists)"
    elsif !File.directory?("vendor/plugins")
      puts "I can't find a place to build my nest"
      puts "(directory 'vendor/plugins' is missing)"
    else
      Dir.chdir("vendor/plugins") do
        ruby "-S", "gem", "unpack", "warbler"
      end
    end
  end

  desc "Display version of warbler"
  task :version do
    puts "Warbler version #{Warbler::VERSION}"
  end

  application.top_level
end

Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
aslakhellesoy-warbler-0.9.12 bin/warble
aslakhellesoy-warbler-0.9.13.4 bin/warble
aslakhellesoy-warbler-0.9.13 bin/warble
bekkopen-warbler-0.9.13.1 bin/warble
finnlabs-warbler-0.9.14 bin/warble
fjc-warbler-0.9.12 bin/warble
manalang-warbler-0.9.12.1 bin/warble
nicksieger-warbler-0.9.12 bin/warble
nicksieger-warbler-0.9.13 bin/warble
nicksieger-warbler-0.9.14 bin/warble
warbler-0.9.14 bin/warble
warbler-0.9.11 bin/warble
warbler-0.9.12 bin/warble
warbler-0.9.13 bin/warble