Sha256: 7105ff902f2fb5708059195ff5c7fcdeb3258da716d7564c242436134e69c629
Contents?: true
Size: 859 Bytes
Versions: 41
Compression:
Stored size: 859 Bytes
Contents
class AwesomeTemplate < MetricFu::Template def write # Getting rid of the crap before and after the project name from integrity @name = File.basename(Dir.pwd).gsub(/^\w+-|-\w+$/, "") report.each_pair do |section, contents| if template_exists?(section) create_instance_var(section, contents) @html = erbify(section) html = erbify('layout') fn = output_filename(section) MetricFu.report.save_output(html, MetricFu.output_directory, fn) end end # Instance variables we need should already be created from above if template_exists?('index') @html = erbify('index') html = erbify('layout') fn = output_filename('index') MetricFu.report.save_output(html, MetricFu.output_directory, fn) end end def this_directory File.dirname(__FILE__) end end
Version data entries
41 entries across 41 versions & 13 rubygems