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/web_server.rb,
lib/warbler/rake_helper.rb,
lib/warbler/traits/rack.rb,
lib/warbler/zip_support.rb,
lib/warbler/traits/rails.rb,
lib/warbler/bundler_helper.rb,
lib/warbler/pathmap_helper.rb,
lib/warbler/traits/bundler.rb,
lib/warbler/traits/gemspec.rb,
lib/warbler/platform_helper.rb,
lib/warbler/traits/jbundler.rb,
lib/warbler/traits/nogemspec.rb,
lib/warbler/executable_helper.rb

Overview

– Copyright © 2013 Michal Papis. This source code is available under the MIT license. See the file LICENSE.txt for details. ++

Defined Under Namespace

Modules: BundlerHelper, ExecutableHelper, PathmapHelper, PlatformHelper, RakeHelper, Trait, Traits Classes: Application, Config, Gems, Jar, JettyServer, Task, TraitsDependencyArray, War, WebServer, ZipSupport

Constant Summary collapse

WARBLER_HOME =
File.expand_path(File.dirname(__FILE__) + '/..')
WARBLER_JAR =
"#{WARBLER_HOME}/lib/warbler_jar.jar"
VERSION =
"2.0.5"
WEB_SERVERS =
Hash.new { |hash,_| hash['jetty'] }

Class Attribute Summary collapse

Class Attribute Details

.applicationObject

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



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

def application
  @application
end

.framework_detectionObject

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



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

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.



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

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