Class: Asgit::Services::Bitbucket

Inherits:
Service
  • Object
show all
Defined in:
lib/asgit/services/bitbucket.rb

Instance Attribute Summary

Attributes inherited from Service

#details

Instance Method Summary collapse

Methods inherited from Service

#initialize, register_as

Constructor Details

This class inherits a constructor from Asgit::Services::Service

Instance Method Details

#base_structureObject



11
12
13
# File 'lib/asgit/services/bitbucket.rb', line 11

def base_structure
  "%{base_url}/%{organization}/%{project}"
end

#base_urlObject



7
8
9
# File 'lib/asgit/services/bitbucket.rb', line 7

def base_url
  "https://bitbucket.org"
end

#branch_uriObject



19
20
21
# File 'lib/asgit/services/bitbucket.rb', line 19

def branch_uri
  "branch/%{branch}"
end

#commit_uriObject



15
16
17
# File 'lib/asgit/services/bitbucket.rb', line 15

def commit_uri
  "commits/%{commit}"
end

#file_at_commit_uriObject



23
24
25
# File 'lib/asgit/services/bitbucket.rb', line 23

def file_at_commit_uri
  "src/%{commit}/%{file_path}?at=%{branch}"
end