Changeset 435

Show
Ignore:
Timestamp:
02/26/08 03:19:43 (11 months ago)
Author:
mbailey
Message:

Specify the path to your local template dir with something like:

set :local_template_dir, File.join('..','..',blah,'templates')

you can over ride default deprec templates by putting your own in config/templates

The path must be the same as in the deprec tree.

e.g. config/templates/nginx/nginx.conf.erb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/capistrano_extensions.rb

    r434 r435  
    3333    end 
    3434   
    35     # Local copies of deprec templates exist they will be used  
     35    # If local copies of deprec templates exist they will be used  
     36    # If you don't specify the location with the local_template_dir option 
     37    # it defaults to config/templates. 
    3638    # e.g. config/templates/nginx/nginx.conf.erb 
    37     local_template = File.join('config','templates',app.to_s, template) 
     39    local_template = File.join(local_template_dir, app.to_s, template) 
    3840    if File.exists?(local_template) 
    3941      puts 
  • trunk/lib/deprec/recipes/deprec.rb

    r330 r435  
    99    end 
    1010  end 
     11   
     12  # Deprec checks here for local versions of config templates before it's own 
     13  set :local_template_dir, File.join('config','templates') 
    1114   
    1215  # The following two Constants contain details of the configuration