fastlane-plugin-ftps 0.1.19 → 0.1.20
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 +4 -4
- data/lib/fastlane/plugin/ftps/actions/ftps_action.rb +17 -17
- data/lib/fastlane/plugin/ftps/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c1a6c9e85fb0190557d1942eb350eb7047cb8f08dd125ef32813d92e56be74
|
4
|
+
data.tar.gz: faf1d87828c3ad8fac45731ea32dbefba80fd29a1c4784c0872c26e122ba3b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7575a424af5a8352f3eed74f0f4338c44591251374585b93d9f1d88238b15ba0ee26250ea9a32744ebe0e1b9534872916dc3f858cab11b62609488a09368d7e7
|
7
|
+
data.tar.gz: d2f489f74074428db085949b464c217bd133f8c5c7d7fa6b0cc55ad974b905f33114fdb1b5863e607e8c7632843896ac7336f3df06c5db78e8771788ce70d406
|
@@ -19,6 +19,23 @@ module Fastlane
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
def ensure_remote_path(ftp, folder)
|
23
|
+
parts = folder.split('/')
|
24
|
+
current_path = ''
|
25
|
+
parts.each do |part|
|
26
|
+
# Pomijamy puste elementy (np. jeśli folder zaczyna się od '/')
|
27
|
+
next if part.empty?
|
28
|
+
|
29
|
+
current_path = "#{current_path}/#{part}"
|
30
|
+
begin
|
31
|
+
ftp.chdir(current_path)
|
32
|
+
rescue Net::FTPPermError
|
33
|
+
ftp.mkdir(part)
|
34
|
+
ftp.chdir(current_path)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
22
39
|
def self.connect_ftp(params)
|
23
40
|
ftp = open(params)
|
24
41
|
ftp
|
@@ -95,23 +112,6 @@ module Fastlane
|
|
95
112
|
UI.success("Successfully uploaded all files to #{params[:upload][:dest]}")
|
96
113
|
end
|
97
114
|
|
98
|
-
def ensure_remote_path(ftp, folder)
|
99
|
-
parts = folder.split('/')
|
100
|
-
current_path = ''
|
101
|
-
parts.each do |part|
|
102
|
-
# Pomijamy puste elementy (np. jeśli folder zaczyna się od '/')
|
103
|
-
next if part.empty?
|
104
|
-
|
105
|
-
current_path = "#{current_path}/#{part}"
|
106
|
-
begin
|
107
|
-
ftp.chdir(current_path)
|
108
|
-
rescue Net::FTPPermError
|
109
|
-
ftp.mkdir(part)
|
110
|
-
ftp.chdir(current_path)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
115
|
#####################################################
|
116
116
|
# @!group Documentation
|
117
117
|
#####################################################
|