Class: S3Repo::Templates

Inherits:
Base
  • Object
show all
Defined in:
lib/s3repo/templates.rb

Overview

Templates object, represents the generated templates for repo navigation

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from S3Repo::Base

Instance Method Details

#update!Object



7
8
9
10
11
12
# File 'lib/s3repo/templates.rb', line 7

def update!
  templates.each do |filename, template|
    rendered = template.result(template_binding.load_binding)
    client.upload(filename, rendered)
  end
end