Class: KnapsackPro::Config::CI::AppVeyor

Inherits:
Base
  • Object
show all
Defined in:
lib/knapsack_pro/config/ci/app_veyor.rb

Instance Method Summary collapse

Methods inherited from Base

#node_retry_count

Instance Method Details

#branchObject



24
25
26
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 24

def branch
  ENV['APPVEYOR_REPO_BRANCH']
end

#ci_providerObject



44
45
46
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 44

def ci_provider
  "AppVeyor"
end

#commit_hashObject



20
21
22
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 20

def commit_hash
  ENV['APPVEYOR_REPO_COMMIT']
end

#detectedObject



36
37
38
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 36

def detected
  ENV.key?('APPVEYOR') ? self.class : nil
end

#fixed_queue_splitObject



40
41
42
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 40

def fixed_queue_split
  false
end

#node_build_idObject



16
17
18
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 16

def node_build_id
  ENV['APPVEYOR_BUILD_ID']
end

#node_indexObject



12
13
14
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 12

def node_index
  # not provided
end

#node_totalObject



8
9
10
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 8

def node_total
  # not provided
end

#project_dirObject



28
29
30
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 28

def project_dir
  ENV['APPVEYOR_BUILD_FOLDER']
end

#user_seatObject



32
33
34
# File 'lib/knapsack_pro/config/ci/app_veyor.rb', line 32

def user_seat
  ENV['APPVEYOR_REPO_COMMIT_AUTHOR']
end