teuton 2.9.0 → 2.9.1
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/docs/changelog/changelog.2.md +5 -1
- data/lib/teuton/utils/configfile_reader.rb +17 -6
- data/lib/teuton/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee10a452f23f3de91ef5ae2239480a7f72fbd07502a846b8517b8b6c4f3200f5
|
4
|
+
data.tar.gz: cd31f3dc5521fb66205c3d5bb2c72420a0455ea1e14b2cbbaa4f1288f58da279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70386a6f0b98a7efd9740e82709b7632bd67b2bd1aa090698980c151c246e2d6aea53ab76422d6c0318aceef434d5636a8c5d8797e69d13c28fabbe9b2af491e
|
7
|
+
data.tar.gz: 4e0fd5a4462fa8c728aa4daeadafee33620df166eadaab8c9ee55c27ad3e5b0c63b4615a8e7e2fc0562f85083ccca2bd2ae18793a00c668aada941ed44dc9fa5
|
@@ -94,7 +94,7 @@ DSL send:
|
|
94
94
|
- [UPDATE] Rename "remote_dir" send param to "dir".
|
95
95
|
- [UPDATE] send output messages
|
96
96
|
|
97
|
-
## [2.9.0]
|
97
|
+
## [2.9.0] 20230726
|
98
98
|
|
99
99
|
- [ADD] "expect_sequence" that check if sequence is present
|
100
100
|
- [ADD] New DSL "run_script". Example: `run_script script, on: :host1`, upload script to host1 and then execute it on remote.
|
@@ -103,3 +103,7 @@ DSL send:
|
|
103
103
|
- [FIX] `teuton check` works fine with `macros`.
|
104
104
|
- [ADD] `teuton readme` works with `expect_sequence`, `run_script` and `upload`.
|
105
105
|
- [FIX] `teuton readme` works fine with `macros`.
|
106
|
+
|
107
|
+
## [2.9.1] 20231117
|
108
|
+
|
109
|
+
- [FIX] Config option `tt_include` doubled readed data on Windows platforms.
|
@@ -76,13 +76,24 @@ module ConfigFileReader
|
|
76
76
|
else
|
77
77
|
File.join(File.dirname(filepath), data[:global][:tt_include])
|
78
78
|
end
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
files.
|
79
|
+
exts = {
|
80
|
+
yaml: ['.yaml', '.YAML', '.yml', '.YML'],
|
81
|
+
json: ['.json', '.JSON']
|
82
|
+
}
|
83
|
+
files = Dir.glob(File.join(basedir, "**/*"))
|
84
|
+
files.each { |filename|
|
84
85
|
begin
|
85
|
-
|
86
|
+
ext = File.extname(filename)
|
87
|
+
if exts[:yaml].include? ext
|
88
|
+
data[:cases] << YAML.load(File.open(filename))
|
89
|
+
elsif exts[:json].include? ext
|
90
|
+
data[:cases] = JSON.parse(File.read(filename), symbolize_names: true)
|
91
|
+
elsif File.file? filename
|
92
|
+
msg = "[ERROR] Loading configuration files: " \
|
93
|
+
" No yaml/json valid extension " \
|
94
|
+
" (#{file})"
|
95
|
+
warn msg
|
96
|
+
end
|
86
97
|
rescue => e
|
87
98
|
puts "\n" + ("=" * 80)
|
88
99
|
puts "[ERROR] ConfigFileReader#read <#{file}>"
|
data/lib/teuton/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teuton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Vargas Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|