Skip to content

Commit

Permalink
CarthageCachePublishAction
Browse files Browse the repository at this point in the history
  • Loading branch information
thii committed Jun 4, 2016
1 parent c9bf242 commit 8521ae6
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module Fastlane
module Actions
class CarthageCachePublishAction < Action
def self.run(params)
UI.message("Uploading Carthage cache to Amazon S3...")
sh "bundle exec carthage_cache publish --bucket-name #{params[:bucket]}"
end

def self.description
%q{Upload Carthage cache to Amazon S3}
end

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

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

def self.is_supported?(platform)
[:ios, :mac, :tvos, :watchos].include?(platform)
end
end
end
end

0 comments on commit 8521ae6

Please sign in to comment.