Method: Warbler::Application#load_rakefile
- Defined in:
- lib/warbler/application.rb
#load_rakefile ⇒ Object
Sets the application name and loads Warbler’s own tasks
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/warbler/application.rb', line 23 def load_rakefile @name = 'warble' # Load the main warbler tasks wt = Warbler::Task.new task :default => wt.name desc "Generate a configuration file to customize your archive" task :config => "#{wt.name}:config" desc "Install Warbler tasks in your Rails application" task :pluginize => "#{wt.name}:pluginize" desc "Feature: package gem repository inside a jar" task :gemjar => "#{wt.name}:gemjar" desc "Feature: make an executable archive (runnable + an embedded web server)" task :executable => "#{wt.name}:executable" desc "Feature: make a runnable archive (e.g. java -jar rails.war -S rake db:migrate)" task :runnable => "#{wt.name}:runnable" desc "Feature: precompile all Ruby files" task :compiled => "#{wt.name}:compiled" desc "Display version of Warbler" task :version => "#{wt.name}:version" end |