Sha256: 4aff407c880903ee8e4481269501654fea1acaf6d63595a3857d3ef1998ae922

Contents?: true

Size: 862 Bytes

Versions: 12

Compression:

Stored size: 862 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[: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[: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

12 entries across 12 versions & 1 rubygems

Version Path
depengine-3.0.11 lib/depengine/dsl/template.rb
depengine-3.0.10 lib/depengine/dsl/template.rb
depengine-3.0.9 lib/depengine/dsl/template.rb
depengine-3.0.8 lib/depengine/dsl/template.rb
depengine-3.0.7 lib/depengine/dsl/template.rb
depengine-3.0.6 lib/depengine/dsl/template.rb
depengine-3.0.5 lib/depengine/dsl/template.rb
depengine-3.0.4 lib/depengine/dsl/template.rb
depengine-3.0.3 lib/depengine/dsl/template.rb
depengine-3.0.2 lib/depengine/dsl/template.rb
depengine-3.0.1 lib/depengine/dsl/template.rb
depengine-3.0.0 lib/depengine/dsl/template.rb