Patches: Browse | Submit New | Admin

[#21790] Avoid calling the environment task to detect frameworks

Date:
2008-09-03 13:31
Priority:
3
Submitted By:
Aslak Hellesøy (aslak_hellesoy)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Avoid calling the environment task to detect frameworks

Detailed description
I'm on a project where I'm packaging a war on machine X for environment E. Machine X doesn't have access to the database
in environment E. (The app will be deployed to a machine Y that does).

The attached patch makes it possible to omit the :environment rake task like this:

Warbler::Config.new do |config|
  config.use_rails
end

The same is possible for Merb:

Warbler::Config.new do |config|
  config.use_merb
end

Cheers,
Aslak

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
overridable_frameweork_detection.diff First patch Download

Changes:

Field Old Value Date By
File Added4012: overridable_frameweork_detection.diff2008-09-03 13:31aslak_hellesoy