Class: Jets::Git::Circleci

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/git/circleci.rb

Instance Method Summary collapse

Instance Method Details

#git_branchObject



16
17
18
# File 'lib/jets/git/circleci.rb', line 16

def git_branch
  ENV['CIRCLE_BRANCH']
end

#git_shaObject



20
21
22
# File 'lib/jets/git/circleci.rb', line 20

def git_sha
  ENV['CIRCLE_SHA1']
end

#paramsObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/jets/git/circleci.rb', line 3

def params
  params = {
    git_system: 'circleci',
    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