Sha256: ca759b34193194cd6790ace8d1a633ff761b35a2464d56e243fd5b487f062eef

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 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

8 entries across 8 versions & 1 rubygems

Version Path
depengine-3.0.20 lib/depengine/dsl/template.rb
depengine-3.0.19 lib/depengine/dsl/template.rb
depengine-3.0.18 lib/depengine/dsl/template.rb
depengine-3.0.17 lib/depengine/dsl/template.rb
depengine-3.0.16 lib/depengine/dsl/template.rb
depengine-3.0.15 lib/depengine/dsl/template.rb
depengine-3.0.14 lib/depengine/dsl/template.rb
depengine-3.0.13 lib/depengine/dsl/template.rb