Class: Fastlane::Actions::CarthageCachePublishAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CarthageCachePublishAction
- Defined in:
- lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
13 14 15 |
# File 'lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb', line 13 def self. [%q{thii}] end |
.available_options ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb', line 17 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
9 10 11 |
# File 'lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb', line 9 def self.description %q{Upload Carthage cache to Amazon S3} end |
.is_supported?(platform) ⇒ Boolean
27 28 29 |
# File 'lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb', line 27 def self.is_supported?(platform) [:ios, :mac, :tvos, :watchos].include?(platform) end |
.run(params) ⇒ Object
4 5 6 7 |
# File 'lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb', line 4 def self.run(params) UI.("Uploading Carthage cache to Amazon S3...") sh "bundle exec carthage_cache publish --bucket-name #{params[:bucket]}" end |