class Fastlane::Helper::BuildCacheHelper

Public Class Methods

build_identifier() click to toggle source

class methods that you define here become available in your action as `Helper::BuildCacheHelper.your_method`

# File lib/fastlane/plugin/build_cache/helper/build_cache_helper.rb, line 7
def self.build_identifier
  commits = Actions.sh('git rev-list HEAD', log: $verbose).chomp
  identifier = Digest::SHA256.hexdigest(commits)
  identifier + '.zip'
end
ensure_workspace_folder_exists(workspace_path) click to toggle source
# File lib/fastlane/plugin/build_cache/helper/build_cache_helper.rb, line 13
def self.ensure_workspace_folder_exists(workspace_path)
  `mkdir #{workspace_path}` unless File.exist?(workspace_path)
end