Class: Jets::Git::Custom

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

Instance Method Summary collapse

Methods inherited from Base

#base, #params, #user

Instance Method Details

#git_branchObject



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

def git_branch
  ENV["JETS_GIT_CUSTOM_BRANCH"]
end

#git_messageObject



28
29
30
# File 'lib/jets/git/custom.rb', line 28

def git_message
  ENV["JETS_GIT_CUSTOM_MESSAGE"]
end

#git_shaObject



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

def git_sha
  ENV["JETS_GIT_CUSTOM_SHA"]
end

#git_urlObject



24
25
26
# File 'lib/jets/git/custom.rb', line 24

def git_url
  ENV["JETS_GIT_CUSTOM_URL"]
end

#infoObject



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

def info
  info = {
    git_system: "custom",
    git_branch: git_branch,
    git_sha: git_sha,
    git_dirty: false,
    git_message: git_message
    # git_version: nil,
  }
  info[:git_url] = git_url if git_url
  info
end