Class: Fastlane::Actions::CarthageCacheExistAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CarthageCacheExistAction
- Defined in:
- lib/fastlane/plugin/carthage_cache/actions/carthage_cache_exist.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
14 15 16 |
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_exist.rb', line 14 def self. [%q{bfcrampton}] end |
.available_options ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_exist.rb', line 18 def self. [ 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 ⇒ Object
10 11 12 |
# File 'lib/fastlane/plugin/carthage_cache/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) ⇒ Boolean
28 29 30 |
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_exist.rb', line 28 def self.is_supported?(platform) [:ios, :mac, :tvos, :watchos].include?(platform) end |
.run(params) ⇒ Object
4 5 6 7 8 |
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_exist.rb', line 4 def self.run(params) UI.("Checking Amazon S3 for matching Carthage cache...") check = `bundle exec carthage_cache exist --bucket-name #{params[:bucket]} -s 2>&1`.chomp check == "true" end |