Sha256: 3f88bc526ff4f4fc8e7a6ac1941339f559e7ec70156b4bb1ac342fe8783ce3c9
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
module Deployment module Methods module Template def parse_template(source, target, content, options = {}) template = Processor::Template.new template.cdb = @cdb template.basepath = options[:basepath] || $recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home] options[:excludes] = [] if options[:excludes].nil? options[:excludes] << '.svn' options[:excludes] << '.git' template.parse_template(source, content, ::Helper.path_in_deploy_home(target), options) end def parse_erb_template(source, target, content, options = {}) template = Processor::Template.new template.cdb = @cdb template.basepath = options[:basepath] || $recipe_config[:recipe_base_dir] || $recipe_config[:deploy_home] options[:excludes] = [] if options[:excludes].nil? options[:excludes] << '.svn' options[:excludes] << '.git' template.parse_erb_template(source, content, ::Helper.path_in_deploy_home(target), options) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
depengine-3.0.23 | lib/depengine/dsl/template.rb |
depengine-3.0.22 | lib/depengine/dsl/template.rb |
depengine-3.0.21 | lib/depengine/dsl/template.rb |