Class: NdrDevSupport::RakeCI::SimpleCovHelper

Inherits:
Object
  • Object
show all
Includes:
CommitMetadataPersistable
Defined in:
lib/ndr_dev_support/rake_ci/simple_cov_helper.rb

Overview

This helper persists the SimpleCov::Result

Instance Method Summary collapse

Instance Method Details

#commitObject



11
12
13
14
15
16
# File 'lib/ndr_dev_support/rake_ci/simple_cov_helper.rb', line 11

def commit
  return @commit if @commit

  repo = Rugged::Repository.new('.')
  @commit = repo.lookup(repo.head.target_id)
end

#load_current_resultObject



18
19
20
# File 'lib/ndr_dev_support/rake_ci/simple_cov_helper.rb', line 18

def load_current_result
  load_current_commit_data
end

#save_current_result(result) ⇒ Object



22
23
24
# File 'lib/ndr_dev_support/rake_ci/simple_cov_helper.rb', line 22

def save_current_result(result)
  save_current_commit_data(result)
end