class Statistrano::Deployment::Strategy::Branches::Index
Attributes
releases[R]
template[R]
Public Class Methods
new(releases, template_path=nil)
click to toggle source
# File lib/statistrano/deployment/strategy/branches/index.rb, line 12 def initialize releases, template_path=nil @releases = releases @template = IO.read(template_path || File.expand_path("../index/template.html.erb", __FILE__)) end
Public Instance Methods
to_html()
click to toggle source
# File lib/statistrano/deployment/strategy/branches/index.rb, line 17 def to_html ERB.new(template).result(ERBContext.new(releases).get_binding) end