Sha256: b0763c5ad1a9197ef11cecdb0070f8c4754d53b9add914deca18465dd5fe10a9

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

module SimpleCov
  module Formatter
    class HTMLFormatter
      def format(result)
        Dir[File.join(File.dirname(__FILE__), '../public/*')].each do |path|
          FileUtils.cp_r(path, asset_output_path)
        end

        File.open(File.join(output_path, 'index.html'), 'wb') do |file|
          file.puts template('layout').result(binding)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
aruba-1.0.2 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
aruba-1.0.1 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
aruba-1.0.0 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
aruba-1.0.0.pre.alpha.5 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
aruba-1.0.0.pre.alpha.4 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
aruba-1.0.0.pre.alpha.3 fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb