fastlane-plugin-carthage_cache_ftps 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b2ce1a9eea0c1d6cbb8643f46b7ae032d7189f2
|
4
|
+
data.tar.gz: b86d2094773f68b5c49b0ff33dc8e257c48c2905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa70455940c78b708a3e7876d08972dee629b08beb956799dff919c66783527c3526fb2985b685e1080d7d58b4bb94fcb20ec1445199d62b306c0a56e035f93e
|
7
|
+
data.tar.gz: dabc74fbb8960b62247d31551b4d5ba58bfe378e0c836e4f4bdb6969e12d4346ce6b4f367c15955213d6423771f955b849cc3d2fc483b6072bf59d985060b52c
|
data/README.md
CHANGED
@@ -12,44 +12,7 @@ fastlane add_plugin carthage_cache_ftps
|
|
12
12
|
|
13
13
|
## About carthage_cache_ftps
|
14
14
|
|
15
|
-
Allows to publish or install the carthage builds via FTPS
|
16
|
-
|
17
|
-
|
18
|
-
### AWS
|
19
|
-
|
20
|
-
First, run
|
21
|
-
|
22
|
-
```bash
|
23
|
-
carthage_cache config
|
24
|
-
```
|
25
|
-
|
26
|
-
to create the `.carthage_cache.yml` file.
|
27
|
-
|
28
|
-
Then, call the plugin from the Fastfile using
|
29
|
-
|
30
|
-
```ruby
|
31
|
-
carthage_cache (
|
32
|
-
command: "install" #This is the default and can be omitted
|
33
|
-
)
|
34
|
-
```
|
35
|
-
|
36
|
-
to install from cache and use
|
37
|
-
|
38
|
-
```ruby
|
39
|
-
carthage_cache (
|
40
|
-
command: "publish"
|
41
|
-
)
|
42
|
-
```
|
43
|
-
|
44
|
-
to push the current state to the remote.
|
45
|
-
|
46
|
-
Run
|
47
|
-
|
48
|
-
```bash
|
49
|
-
bundle exec fastlane actions carthage_cache
|
50
|
-
```
|
51
|
-
|
52
|
-
for more information.
|
15
|
+
Allows to publish or install the carthage builds via FTPS to avoid recompilation.
|
53
16
|
|
54
17
|
### FTPS
|
55
18
|
|
@@ -104,6 +67,13 @@ For any other issues and feedback about this plugin, please submit it to this re
|
|
104
67
|
|
105
68
|
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
106
69
|
|
70
|
+
### Keychain issues
|
71
|
+
```
|
72
|
+
SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
|
73
|
+
```
|
74
|
+
If you have to login every time and see an error like this, got to Keychain and delete the carthage cache entry.
|
75
|
+
|
76
|
+
|
107
77
|
## Using _fastlane_ Plugins
|
108
78
|
|
109
79
|
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
require 'double_bag_ftps'
|
1
|
+
require 'net/ftp'
|
3
2
|
|
3
|
+
class FTPRepository
|
4
4
|
attr_reader :ftps_host
|
5
5
|
attr_reader :ftps_remote_path
|
6
6
|
attr_reader :ftps_username
|
@@ -13,35 +13,35 @@ class FTPRepository
|
|
13
13
|
@ftps_password = config[:secret_access_key]
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
def connection
|
17
|
+
Net::FTP.new(@ftps_host, {
|
18
|
+
ssl: { verify_mode: OpenSSL::SSL::VERIFY_NONE },
|
19
|
+
passive: true,
|
20
|
+
username: @ftps_username,
|
21
|
+
password: @ftps_password
|
22
|
+
})
|
23
23
|
end
|
24
24
|
|
25
25
|
def archive_exist?(archive_filename)
|
26
|
-
ftps =
|
26
|
+
ftps = connection
|
27
27
|
begin
|
28
|
-
ftps.chdir(@ftps_remote_path)
|
29
|
-
rescue
|
28
|
+
ftps.chdir(@ftps_remote_path)
|
29
|
+
rescue StandardError
|
30
30
|
return false
|
31
31
|
end
|
32
32
|
files = ftps.list
|
33
33
|
ftps.close
|
34
|
-
return !files.select { |f| f.include?
|
34
|
+
return !files.select { |f| f.include? archive_filename.to_s }.empty?
|
35
35
|
end
|
36
36
|
|
37
37
|
def download(archive_filename, destination_path)
|
38
|
-
ftps =
|
38
|
+
ftps = connection
|
39
39
|
ftps.getbinaryfile("#{@ftps_remote_path}/#{archive_filename}", destination_path)
|
40
40
|
ftps.close
|
41
41
|
end
|
42
42
|
|
43
43
|
def upload(archive_filename, archive_path)
|
44
|
-
ftps =
|
44
|
+
ftps = connection
|
45
45
|
files = ftps.list
|
46
46
|
ftps.mkdir(@ftps_remote_path) if files.select { |f| f.include? @ftps_remote_path }.empty?
|
47
47
|
ftps.putbinaryfile(archive_path, "#{@ftps_remote_path}/#{archive_filename}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-carthage_cache_ftps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wolfgang Lutz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carthage_cache
|
@@ -25,13 +25,13 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -39,21 +39,21 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: fastlane
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.44.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.44.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: fastlane
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 2.44.1
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 2.44.1
|
125
111
|
description:
|
126
112
|
email: wlut@num42.de
|
127
113
|
executables: []
|
@@ -148,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
134
|
requirements:
|
149
135
|
- - ">="
|
150
136
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
137
|
+
version: 2.5.0
|
152
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
139
|
requirements:
|
154
140
|
- - ">="
|
@@ -156,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
142
|
version: '0'
|
157
143
|
requirements: []
|
158
144
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.2
|
160
146
|
signing_key:
|
161
147
|
specification_version: 4
|
162
148
|
summary: Allows to publish or install the carthage builds via ftps to avoid recompilation
|