Class: Jets::Git::Bitbucket
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#git_branch ⇒ Object
16 17 18 |
# File 'lib/jets/git/bitbucket.rb', line 16 def git_branch ENV["BITBUCKET_BRANCH"] end |
#git_sha ⇒ Object
20 21 22 |
# File 'lib/jets/git/bitbucket.rb', line 20 def git_sha ENV["BITBUCKET_COMMIT"] end |
#git_url ⇒ Object
24 25 26 27 28 |
# File 'lib/jets/git/bitbucket.rb', line 24 def git_url host = ENV["BITBUCKET_HOST"] || "https://bitbucket.org" full_repo = ENV["BITBUCKET_REPO_FULL_NAME"] "#{host}/#{full_repo}" end |
#info ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/jets/git/bitbucket.rb', line 3 def info info = { git_system: "bitbucket", git_branch: git_branch, git_sha: git_sha, git_dirty: false # git_message: nil, # git_version: nil, } info[:git_url] = git_url if git_url info end |