fastlane-plugin-carthage_cache_res 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +57 -0
- data/lib/fastlane/plugin/carthage_cache.rb +16 -0
- data/lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb +33 -0
- data/lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_install.rb +32 -0
- data/lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb +32 -0
- data/lib/fastlane/plugin/carthage_cache_res/helper/carthage_cache_helper.rb +12 -0
- data/lib/fastlane/plugin/carthage_cache_res/version.rb +5 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ac95f4c4d3e5b359587e1c4ba74cad064e88eef7b06b6a8fffa0e0f79b04100c
|
4
|
+
data.tar.gz: b89937d8cb6ffcd62f3aaee2e38ec07f1c032be4f9ef8530d47f7a914fc296f6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e586c8bbe6438c8c74b88fadcbcf6d018b4277526851b48ac72f4ea360df24a2e4226836b8c8cf6e749d30c9f14294b1362904ea45c010746a7ab5c57aaf578b
|
7
|
+
data.tar.gz: e280d07ad4c45f0432d159639a18e0c88fe6fce513c3a89074ca485c3a012d4089d917878672274c40012daab7df6367dee11397c0c1a85dcc5315eb02a2ccf2
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Thi Doan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# fastlane-plugin-carthage_cache `fastlane` Plugin
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/fastlane-plugin-carthage_cache)
|
4
|
+
|
5
|
+
## Getting Started
|
6
|
+
|
7
|
+
This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with fastlane-plugin-carthage_cache, add it to your project by running:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
fastlane add_plugin carthage_cache
|
11
|
+
```
|
12
|
+
|
13
|
+
## About carthage_cache
|
14
|
+
|
15
|
+
A tool that allows to cache Carthage/Build folder in Amazon S3.
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
20
|
+
|
21
|
+
Download Carthage cache from Amazon S3
|
22
|
+
|
23
|
+
```yaml
|
24
|
+
carthage_cache_install(
|
25
|
+
bucket: 'carthage-cache',
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
29
|
+
Publish Carthage cache to Amazon S3
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
carthage_cache_publish(
|
33
|
+
bucket: 'carthage-cache',
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
37
|
+
Where `carthage-cache` is your bucket name.
|
38
|
+
|
39
|
+
## Issues and Feedback
|
40
|
+
|
41
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
42
|
+
|
43
|
+
## Troubleshooting
|
44
|
+
|
45
|
+
For some more detailed help with plugins problems, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
|
46
|
+
|
47
|
+
## Using `fastlane` Plugins
|
48
|
+
|
49
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md) in the main `fastlane` repo.
|
50
|
+
|
51
|
+
## About `fastlane`
|
52
|
+
|
53
|
+
`fastlane` automates building, testing, and releasing your app for beta and app store distributions. To learn more about `fastlane`, check out [fastlane.tools](https://fastlane.tools).
|
54
|
+
|
55
|
+
## Acknowledgments
|
56
|
+
|
57
|
+
[Guido Marucci Blas](https://github.com/guidomb), who created the [carthage_cache](https://github.com/guidomb/carthage_cache) gem.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/carthage_cache/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module CarthageCache
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::CarthageCache.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class CarthageCacheExistAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
UI.message("Checking Amazon S3 for matching Carthage cache...")
|
6
|
+
check = `bundle exec carthage_cache exist --bucket-name #{params[:bucket]} -s 2>&1`.chomp
|
7
|
+
check == "true"
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.description
|
11
|
+
%q{Check if Carthage cache exists for Cartfile.resolved in Amazon S3}
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.authors
|
15
|
+
[%q{bfcrampton}]
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.available_options
|
19
|
+
[
|
20
|
+
FastlaneCore::ConfigItem.new(key: :bucket,
|
21
|
+
env_name: "CARTHAGE_CACHE_BUCKET",
|
22
|
+
description: "Amazon S3 bucket name which caches your Carthage build",
|
23
|
+
optional: false,
|
24
|
+
type: String)
|
25
|
+
]
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.is_supported?(platform)
|
29
|
+
[:ios, :mac, :tvos, :watchos].include?(platform)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class CarthageCacheInstallAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
UI.message("Downloading Carthage cache from Amazon S3...")
|
6
|
+
sh "bundle exec carthage_cache install --bucket-name #{params[:bucket]}"
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.description
|
10
|
+
%q{Download Carthage cache from Amazon S3}
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.authors
|
14
|
+
[%q{thii}]
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.available_options
|
18
|
+
[
|
19
|
+
FastlaneCore::ConfigItem.new(key: :bucket,
|
20
|
+
env_name: "CARTHAGE_CACHE_BUCKET",
|
21
|
+
description: "Amazon S3 bucket name which caches your Carthage build",
|
22
|
+
optional: false,
|
23
|
+
type: String)
|
24
|
+
]
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.is_supported?(platform)
|
28
|
+
[:ios, :mac, :tvos, :watchos].include?(platform)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class CarthageCachePublishAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
UI.message("Uploading Carthage cache to Amazon S3...")
|
6
|
+
sh "bundle exec carthage_cache publish --bucket-name #{params[:bucket]}"
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.description
|
10
|
+
%q{Upload Carthage cache to Amazon S3}
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.authors
|
14
|
+
[%q{thii}]
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.available_options
|
18
|
+
[
|
19
|
+
FastlaneCore::ConfigItem.new(key: :bucket,
|
20
|
+
env_name: "CARTHAGE_CACHE_BUCKET",
|
21
|
+
description: "Amazon S3 bucket name which caches your Carthage build",
|
22
|
+
optional: false,
|
23
|
+
type: String)
|
24
|
+
]
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.is_supported?(platform)
|
28
|
+
[:ios, :mac, :tvos, :watchos].include?(platform)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Helper
|
3
|
+
class CarthageCacheHelper
|
4
|
+
# class methods that you define here become available in your action
|
5
|
+
# as `Helper::CarthageCacheHelper.your_method`
|
6
|
+
#
|
7
|
+
def self.show_message
|
8
|
+
UI.message("Hello from the carthage_cache plugin helper!")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-carthage_cache_res
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thi Doan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: carthage_cache_res
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: fastlane
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.93.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.93.1
|
83
|
+
description:
|
84
|
+
email: t@thi.im
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- LICENSE
|
90
|
+
- README.md
|
91
|
+
- lib/fastlane/plugin/carthage_cache.rb
|
92
|
+
- lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_exist.rb
|
93
|
+
- lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_install.rb
|
94
|
+
- lib/fastlane/plugin/carthage_cache_res/actions/carthage_cache_publish.rb
|
95
|
+
- lib/fastlane/plugin/carthage_cache_res/helper/carthage_cache_helper.rb
|
96
|
+
- lib/fastlane/plugin/carthage_cache_res/version.rb
|
97
|
+
homepage: https://github.com/dokim/fastlane-plugin-carthage_cache_res
|
98
|
+
licenses:
|
99
|
+
- MIT
|
100
|
+
metadata: {}
|
101
|
+
post_install_message:
|
102
|
+
rdoc_options: []
|
103
|
+
require_paths:
|
104
|
+
- lib
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
requirements: []
|
116
|
+
rubygems_version: 3.0.3
|
117
|
+
signing_key:
|
118
|
+
specification_version: 4
|
119
|
+
summary: A Fastlane plugin that allows to cache Carthage/Build folder in Amazon S3.
|
120
|
+
test_files: []
|