Class: SimpleCov::Formatter::BitbucketServer
- Inherits:
-
Object
- Object
- SimpleCov::Formatter::BitbucketServer
- Defined in:
- lib/simplecov/formatter/bitbucket_server.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
- #format(result) ⇒ Object
-
#initialize(base_uri, sha = ENV['GIT_COMMIT']) ⇒ BitbucketServer
constructor
A new instance of BitbucketServer.
- #new ⇒ Object
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 |
#new ⇒ Object
11 12 13 |
# File 'lib/simplecov/formatter/bitbucket_server.rb', line 11 def new self end |