Sha256: 2859d09d9ca71f74849bf41be08f299aee8bf917f10e601fc4bc59e05630695f

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

module Capistrano
  module Template
    module Helpers
      class TemplateDigester < SimpleDelegator
        attr_accessor :digest_algo

        def initialize(renderer, digest_algo)
          super renderer

          self.digest_algo = digest_algo
        end

        def digest
          digest_algo.call(as_str)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capistrano-template-0.0.9 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.8 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.7 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.5 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.4 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.3 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.2 lib/capistrano/template/helpers/template_digester.rb
capistrano-template-0.0.1 lib/capistrano/template/helpers/template_digester.rb