class Fastlane::Actions::CarthageCacheExistAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb, line 14
def self.authors
  [%q{bfcrampton}]
end
available_options() click to toggle source
# File lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb, line 18
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :bucket,
                            env_name: "CARTHAGE_CACHE_BUCKET",
                         description: "Amazon S3 bucket name which caches your Carthage build",
                            optional: false,
                                type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb, line 10
def self.description
  %q{Check if Carthage cache exists for Cartfile.resolved in Amazon S3}
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb, line 28
def self.is_supported?(platform)
  [:ios, :mac, :tvos, :watchos].include?(platform)
end
run(params) click to toggle source
# File lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb, line 4
def self.run(params)
  UI.message("Checking Amazon S3 for matching Carthage cache...")
  check = `bundle exec carthage_cache exist --bucket-name #{params[:bucket]} -s 2>&1`.chomp
  check == "true"
end