Class: SimpleCov::Formatter::BitbucketServer

Inherits:
Object
  • Object
show all
Defined in:
lib/simplecov/formatter/bitbucket_server.rb

Constant Summary collapse

VERSION =
'0.1.0'

Instance Method Summary collapse

Constructor Details

#initialize(base_uri, sha = ENV['GIT_COMMIT']) ⇒ BitbucketServer

Returns a new instance of BitbucketServer.



6
7
8
9
# File 'lib/simplecov/formatter/bitbucket_server.rb', line 6

def initialize(base_uri, sha = ENV['GIT_COMMIT'])
  @base_uri = base_uri
  @sha = sha
end

Instance Method Details

#format(result) ⇒ Object



15
16
17
# File 'lib/simplecov/formatter/bitbucket_server.rb', line 15

def format(result)
  upload(coverage_for_bitbucket(result))
end

#newObject



11
12
13
# File 'lib/simplecov/formatter/bitbucket_server.rb', line 11

def new
  self
end