Module: Deployment::Methods::Template
- Defined in:
- lib/depengine/dsl/template.rb
Instance Method Summary collapse
- #parse_erb_template(source, target, content, options = {}) ⇒ Object
- #parse_template(source, target, content, options = {}) ⇒ Object
Instance Method Details
#parse_erb_template(source, target, content, options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/depengine/dsl/template.rb', line 14 def parse_erb_template(source, target, content, ={}) template = Processor::Template.new template.cdb = @cdb template.basepath = [:basepath] || $recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home] [:excludes] = [] if [:excludes].nil? [:excludes] << '.svn' [:excludes] << '.git' template.parse_erb_template(source, content, ::Helper::path_in_deploy_home(target), ) end |
#parse_template(source, target, content, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/depengine/dsl/template.rb', line 4 def parse_template(source, target, content, ={}) template = Processor::Template.new template.cdb = @cdb template.basepath = [:basepath] || $recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home] [:excludes] = [] if [:excludes].nil? [:excludes] << '.svn' [:excludes] << '.git' template.parse_template(source, content, ::Helper::path_in_deploy_home(target), ) end |