Sha256: 282df26f7088b0abf6855b52b0b7419f82ba0759d09e21ce7cbc3754f90289ab
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
module Jets::Git class Bitbucket def params params = { git_system: 'bitbucket', git_branch: git_branch, git_sha: git_sha, git_dirty: false, # git_message: nil, # git_version: nil, } params[:git_url] = git_url if git_url params end def git_branch ENV['BITBUCKET_BRANCH'] end def git_sha ENV['BITBUCKET_COMMIT'] end def git_url host = ENV['BITBUCKET_HOST'] || 'https://bitbucket.org' full_repo = ENV['BITBUCKET_REPO_FULL_NAME'] "#{host}/#{full_repo}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jets-git-0.2.1 | lib/jets/git/bitbucket.rb |
jets-git-0.2.0 | lib/jets/git/bitbucket.rb |