Class: Fastlane::Actions::CarthageCacheInstallAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/carthage_cache/actions/carthage_cache_install.rb

Class Method Summary collapse

Class Method Details

.authorsObject



13
14
15
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_install.rb', line 13

def self.authors
  [%q{thii}]
end

.available_optionsObject



17
18
19
20
21
22
23
24
25
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_install.rb', line 17

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

.descriptionObject



9
10
11
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_install.rb', line 9

def self.description
  %q{Download Carthage cache from Amazon S3}
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/fastlane/plugin/carthage_cache/actions/carthage_cache_install.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/actions/carthage_cache_install.rb', line 4

def self.run(params)
  UI.message("Downloading Carthage cache from Amazon S3...")
  sh "bundle exec carthage_cache install --bucket-name #{params[:bucket]}" 
end