Sha256: b28c076b6dcea3d45dc6221b6c2f3f6223823bdfc9faacf53d8e3312a565e2ea

Contents?: true

Size: 934 Bytes

Versions: 1

Compression:

Stored size: 934 Bytes

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'
	      template.parse_template(source, content, 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'
	      template.parse_erb_template(source, content, target, options)
	    end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
depengine-3.0.12 lib/depengine/dsl/template.rb