Module: Warbler

Defined in:
lib/warbler.rb,
lib/warbler/jar.rb,
lib/warbler/gems.rb,
lib/warbler/task.rb,
lib/warbler/config.rb,
lib/warbler/traits.rb,
lib/warbler/version.rb,
lib/warbler/traits/jar.rb,
lib/warbler/traits/war.rb,
lib/warbler/traits/merb.rb,
lib/warbler/traits/rack.rb,
lib/warbler/traits/rails.rb,
lib/warbler/traits/bundler.rb,
lib/warbler/traits/gemspec.rb,
lib/warbler/traits/nogemspec.rb

Overview

– Copyright © 2010-2011 Engine Yard, Inc. Copyright © 2007-2009 Sun Microsystems, Inc. This source code is available under the MIT license. See the file LICENSE.txt for details. ++

Defined Under Namespace

Modules: Trait, Traits Classes: Application, Config, Gems, Jar, Task, War

Constant Summary collapse

WARBLER_HOME =
File.expand_path(File.dirname(__FILE__) + '/..')
VERSION =
"1.3.1"

Class Attribute Summary collapse

Class Attribute Details

.applicationObject

An instance of Warbler::Application used by the warble command.



15
16
17
# File 'lib/warbler.rb', line 15

def application
  @application
end

.framework_detectionObject

Set Warbler.framework_detection to false to disable auto-detection based on application configuration.



18
19
20
# File 'lib/warbler.rb', line 18

def framework_detection
  @framework_detection
end

.project_applicationObject

Warbler loads the project Rakefile in a separate Rake application from the one where the Warbler tasks are run.



24
25
26
27
# File 'lib/warbler.rb', line 24

def self.project_application
  application.load_project_rakefile if application
  @project_application || Rake.application
end