eco-helpers 2.0.65 → 2.0.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/eco/api/usecases/default_cases/samples/sftp_case.rb +7 -2
- data/lib/eco/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: 8e18955e051a52bf3b075eda58c3e4542cbaa47fad47a2c8be75531fc6ff7d60
|
4
|
+
data.tar.gz: f73bc2e84b1502c0d07d0930822b84ed1850f24023ee579bf893abc9c9d5a1be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 373f6a6a0895abd0894f2d394dbe2b9e25fa00fda3ad6a9d50fa638a7259e0326ee2e23619803807075f448a2c98984a7804e95c4c15fe9263e6acb510f0033b
|
7
|
+
data.tar.gz: 706933565f9eeafd437136ff9159bbe6feb201f07b5f3adf0775eb8c1dfe7069d6f3ca95d724b36fea75a9d355dd7679ded4e4693320455e177425c42b6c6154
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,20 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [2.0.66] - 2022-08-11
|
5
|
+
|
6
|
+
### Added
|
7
|
+
### Changed
|
8
|
+
### Fixed
|
9
|
+
- `Eco::API::UseCases::DefaultCases::Samples::Sftp` manage exception when trying to access remote folder
|
10
|
+
|
4
11
|
## [2.0.65] - 2022-08-11
|
5
12
|
|
6
13
|
### Added
|
7
14
|
### Changed
|
8
15
|
### Fixed
|
9
16
|
- Typo of a fix
|
10
|
-
|
17
|
+
|
11
18
|
## [2.0.64] - 2022-08-11
|
12
19
|
|
13
20
|
### Changed
|
@@ -36,8 +36,13 @@ class Eco::API::UseCases::DefaultCases::Samples::Sftp < Eco::API::Common::Loader
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def with_remote_files
|
39
|
-
|
40
|
-
|
39
|
+
begin
|
40
|
+
sftp.files(remote_folder, pattern: file_pattern).each do |remote_file|
|
41
|
+
yield(remote_file) if block_given?
|
42
|
+
end
|
43
|
+
rescue Net::SFTP::StatusException => e
|
44
|
+
logger.error("SFTP samplecase: There was an error trying to access the remote folder '#{remote_folder}'")
|
45
|
+
[]
|
41
46
|
end
|
42
47
|
end
|
43
48
|
|
data/lib/eco/version.rb
CHANGED