eco-helpers 2.0.63 → 2.0.66

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
  SHA256:
3
- metadata.gz: 142581f236e114a66fe53146914b208185f0ea1e0cdca545d26980030a6eaa22
4
- data.tar.gz: 104ad101a197a54a142578eb7aecc7197606eb4ab84fe68735f870a74d1e3fb0
3
+ metadata.gz: 8e18955e051a52bf3b075eda58c3e4542cbaa47fad47a2c8be75531fc6ff7d60
4
+ data.tar.gz: f73bc2e84b1502c0d07d0930822b84ed1850f24023ee579bf893abc9c9d5a1be
5
5
  SHA512:
6
- metadata.gz: 5f8efed96ef4891dbee99fa5edae77bf9afb88d3813cc45f3f6c82adefea70e22dfc384228c88f6c35d66509ef8b4f8a566a54dcb653ef113d38df92dee1bf3e
7
- data.tar.gz: 1c30c6fba995bdd05a45ae911f655bd8d129d6f2810f09108c1eaad34166183bee23e1c3ad16148ad0c0c3961016cffd6b877e3d5b76718aaa01acc4f84ad874
6
+ metadata.gz: 373f6a6a0895abd0894f2d394dbe2b9e25fa00fda3ad6a9d50fa638a7259e0326ee2e23619803807075f448a2c98984a7804e95c4c15fe9263e6acb510f0033b
7
+ data.tar.gz: 706933565f9eeafd437136ff9159bbe6feb201f07b5f3adf0775eb8c1dfe7069d6f3ca95d724b36fea75a9d355dd7679ded4e4693320455e177425c42b6c6154
data/CHANGELOG.md CHANGED
@@ -1,13 +1,29 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.0.63] - 2022-07-xx
4
+ ## [2.0.66] - 2022-08-11
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
- - `Eco::API::Session::Config::SFTP#remote_folder` to use native path builder
9
-
10
8
  ### Fixed
9
+ - `Eco::API::UseCases::DefaultCases::Samples::Sftp` manage exception when trying to access remote folder
10
+
11
+ ## [2.0.65] - 2022-08-11
12
+
13
+ ### Added
14
+ ### Changed
15
+ ### Fixed
16
+ - Typo of a fix
17
+
18
+ ## [2.0.64] - 2022-08-11
19
+
20
+ ### Changed
21
+ - Nothing
22
+
23
+ ## [2.0.63] - 2022-08-11
24
+
25
+ ### Changed
26
+ - `Eco::API::Session::Config::SFTP#remote_folder` to use native path builder
11
27
 
12
28
  ## [2.0.62] - 2022-07-15
13
29
 
@@ -62,7 +62,7 @@ module Eco
62
62
  end
63
63
 
64
64
  def remote_folder
65
- File.join(*[base_path, enviro_supath].compact)
65
+ File.join(*[base_path, enviro_subpath].compact)
66
66
  end
67
67
  end
68
68
  end
@@ -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
- sftp.files(remote_folder, pattern: file_pattern).each do |remote_file|
40
- yield(remote_file) if block_given?
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.63"
2
+ VERSION = "2.0.66"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.63
4
+ version: 2.0.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura