Class: Fastlane::Actions::CarthageCacheAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CarthageCacheAction
- Defined in:
- lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 25 def self. ["Wolfgang Lutz"] end |
.available_options ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 37 def self. [ FastlaneCore::ConfigItem.new(key: :command, env_name: "CARTHAGE_CACHE_COMMAND", description: "The carthage cache command to use. Allowed values: publish, install", optional: false, type: String, default_value: "install", short_option: "c", verify_block: proc do |value| UI.user_error!("Unknown carthage cache command. Allowed: install, publish") unless ["install", "publish"].include?(value) end) ] end |
.description ⇒ Object
21 22 23 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 21 def self.description "Allows to publish or install the carthage builds to AWS to avoid recompilation. Needs a configuration created by 'carthage_cache config'" end |
.details ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 33 def self.details "This action uses the carthage_cache_gem to cache the built carthage libraries remotely on AWS." end |
.is_supported?(platform) ⇒ Boolean
52 53 54 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 52 def self.is_supported?(platform) [:ios, :mac].include?(platform) end |
.return_value ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 29 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fastlane/plugin/carthage_cache_ftps/actions/carthage_cache_action.rb', line 6 def self.run(params) FastlaneCore::PrintTable.print_values(config: params, title: "Summary for Carthage Cache") application = CarthageCache::Application.new(".", true, {}) command = params.values[:command] case command.to_sym when :install exit 1 unless application.install_archive when :publish exit 1 unless application.create_archive end end |