Sha256: f8ac68f41b7fd3a490f16de12b7d5b8cfa98bbedd40d36e588e9b48140f0b81b

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

require 'mustache'

class WebPreview
  attr_reader :uploads

  def initialize(uploads)
    @uploads = uploads
  end

  def generate_html
    lib_path = File.expand_path(File.dirname(__FILE__))
    template = File.read(lib_path + "/template.mustache.html")
    
    Mustache.render(template, :uploads => @uploads, :travis_id =>  ENV['TRAVIS_JOB_ID'], :circle_ci_id => ENV['CIRCLE_BUILD_NUM'])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
second_curtain-0.6.0 lib/second_curtain/web_preview.rb
second_curtain-0.5.0 lib/second_curtain/web_preview.rb
second_curtain-0.4.0 lib/second_curtain/web_preview.rb