fastlane-plugin-ftps 0.1.9 → 0.1.11
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aefb8844ee622cb83fc2295cd7306aa90bba9f4d55d6864390d85727d4616a5
|
4
|
+
data.tar.gz: a4966e998331b13e4bf3914e4dbf175c7e923097544bbfd4b1d852a273234df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bdff9630369e373db2816f2eb914755c9d77f58ffeaba0b6fe4184ef7610a5d24468cce587e607247f89f11732d3b4fb313c53a2847f921f3b339584c8fb01e
|
7
|
+
data.tar.gz: 593b47d56a93e954d1a17459bf0f9d5bdc91c1bd6eaf7bb98a765ce950eb59dab000a27fcbdf42b3e002f1dae209ac528af66ad40570d4c067e869e827909d36
|
@@ -72,6 +72,7 @@ module Fastlane
|
|
72
72
|
ftp = connect_ftp(params)
|
73
73
|
|
74
74
|
# Upewniamy się, że ścieżka (folder) do której wgrywamy istnieje.
|
75
|
+
base_file_apth= params[:upload][:base_file_apth]
|
75
76
|
ensure_remote_path(ftp, params[:upload][:dest])
|
76
77
|
file_paths = params[:upload][:src]
|
77
78
|
ftp.chdir(params[:upload][:dest])
|
@@ -84,11 +85,22 @@ module Fastlane
|
|
84
85
|
)
|
85
86
|
|
86
87
|
file_paths.each do |local_file|
|
87
|
-
|
88
|
-
|
89
|
-
|
88
|
+
relative_path = local_file.sub(%r{\A#{Regexp.escape(base_file_path)}/?}, '')
|
89
|
+
dir_name = File.dirname(relative_path)
|
90
|
+
file_name = File.basename(relative_path)
|
91
|
+
|
92
|
+
dir_name = "" if dir_name == "."
|
93
|
+
|
94
|
+
remote_path = if dir_name.empty?
|
95
|
+
remote_base
|
96
|
+
else
|
97
|
+
File.join(remote_base, dir_name)
|
90
98
|
end
|
91
|
-
|
99
|
+
|
100
|
+
ensure_remote_path(ftp, remote_path)
|
101
|
+
ftp.chdir(remote_path)
|
102
|
+
ftp.putbinaryfile(local_file, file_name)
|
103
|
+
UI.message("Uploaded #{local_file} -> #{File.join(remote_path, file_name)}")
|
92
104
|
end
|
93
105
|
|
94
106
|
ftp.close
|
@@ -156,6 +168,13 @@ module Fastlane
|
|
156
168
|
optional: true,
|
157
169
|
is_string: false,
|
158
170
|
type: Hash),
|
171
|
+
FastlaneCore::ConfigItem.new(key: :upload_multiple,
|
172
|
+
short_option: "-UM",
|
173
|
+
env_name: "FL_FTP_UPLOAD_MULTIPLE",
|
174
|
+
description: "Upload",
|
175
|
+
optional: true,
|
176
|
+
is_string: false,
|
177
|
+
type: Hash),
|
159
178
|
FastlaneCore::ConfigItem.new(key: :download,
|
160
179
|
short_option: "-D",
|
161
180
|
env_name: "FL_FTP_DOWNLOAD",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-ftps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafał Dziuryk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-progressbar
|