fastlane-plugin-carthage_cache 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b53c46797d58111a6d471f25db24a117576f299b
4
+ data.tar.gz: 833d9822601a1b255dbbdd017a2158dc66324f6a
5
+ SHA512:
6
+ metadata.gz: 304f0f9726fff984de3e816ae3f104c8735e5b35d041a32d975aaa89e1f89d54607ef5b813d3325a395c73b9a780f2b07ccc18318b099a66b2c1946108d28ca6
7
+ data.tar.gz: e0bde721a2b510b43bc7579c0be9271843f71b64ce04a46a90fdf53306d0850a5b1733c1c477c764d39b008907f43d2d745257ea15243f0bfecf2d57ccf9dcb1
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
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](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,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
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module CarthageCache
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -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
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-carthage_cache
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thi Doan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: carthage_cache
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/actions/carthage_cache_install.rb
93
+ - lib/fastlane/plugin/carthage_cache/actions/carthage_cache_publish.rb
94
+ - lib/fastlane/plugin/carthage_cache/helper/carthage_cache_helper.rb
95
+ - lib/fastlane/plugin/carthage_cache/version.rb
96
+ homepage: https://github.com/thii/fastlane-plugin-carthage_cache
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.5.1
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: []