teuton 2.4.4 → 2.4.5

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: d08e48b0ba8d25877e8e77346605089c59c56553f659d26c16e457907594c5dc
4
- data.tar.gz: 030e7290d52ddef0087e9d5f4c391f259fc88bd0c20ec4b47500e9ffcf6be6f5
3
+ metadata.gz: 23e6309b8f112199998d8afd4517a06ec5b80ec4d68421ef67ef87b3c63684ef
4
+ data.tar.gz: b0c17aefadc82be10bc1c52de45fdaa65f070046bc30bad7a0416803c62c5daf
5
5
  SHA512:
6
- metadata.gz: ad340ebd02ca80be898aff768e523f0b8773da4b3c92181db61efbde24a55b67ca02ba243f7f1217d947c28ff8bb3ba552c867ff17ada2d2097de2cf07dd5701
7
- data.tar.gz: 258e6510a41d0d5e1218e2f42db26c2857207db389158efa69fa0125a4593fbf85f2165b8f1a16f072da8830b44f6803863ba513f4635740583c9ba7ee56d38f
6
+ metadata.gz: dc3e324bb363b77302758a8210e02a6258d94e99c0797806c2e2f02894a970a6ca6977984abcc7cd647982c9752b7e5799c762684ca14131d06a1260ecb49eab
7
+ data.tar.gz: b0bed729989027e9916b214b7421f88a172ef522197d1a5f589c2a5424f54688d5ea3695a3cded4410f2a68d63d5ef1687374b740b90ce91450558f03a1bcc37
@@ -1,3 +1,9 @@
1
+ ## [2.4.5]
2
+
3
+ -- FIX: "expect_nothing" was always TRUE when SSH/Telnet connections fails!
4
+ Now when SSH/Telnet connections fails result contains "SSH: NO CONNECTION!"
5
+ So "expect_nothing" will fail.
6
+
1
7
  ## [2.4.4]
2
8
 
3
9
  -- Modify: teuton check output colors and exit codes.
@@ -98,8 +98,10 @@ class Case
98
98
  non_interactive: true
99
99
  )
100
100
  end
101
- if @sessions[hostname].instance_of? Net::SSH::Connection::Session
102
- text = @sessions[hostname].exec!(@action[:command])
101
+ text = if @sessions[hostname].instance_of? Net::SSH::Connection::Session
102
+ @sessions[hostname].exec!(@action[:command])
103
+ else
104
+ "SSH: NO CONNECTION!"
103
105
  end
104
106
  rescue Errno::EHOSTUNREACH
105
107
  @sessions[hostname] = :nosession
@@ -148,10 +150,11 @@ class Case
148
150
  # "Prompt" => Regexp.new(username[1, 40]))
149
151
  # "Prompt" => /[$%#>] \z/n)
150
152
  h.login(username, password)
151
- text = ""
152
153
  h.cmd(@action[:command]) { |i| text << i }
153
154
  h.close
154
155
  @sessions[hostname] = :ok
156
+ else
157
+ text = "TELNET: NO CONNECTION!"
155
158
  end
156
159
  rescue Net::OpenTimeout
157
160
  @sessions[hostname] = :nosession
data/lib/teuton/cli.rb CHANGED
@@ -19,19 +19,17 @@ class CLI < Thor
19
19
  option :cname, type: :string
20
20
  option :cpath, type: :string
21
21
  desc "check [OPTIONS] DIRECTORY", "Check test and config file content"
22
- long_desc <<-LONGDESC
22
+ long_desc <<~LONGDESC
23
+
24
+ (1) teuton check PATH/TO/DIR , Check content of start.rb and config.yaml files.
23
25
 
24
- (1) teuton check path/to/dir/foo
25
- , Check content of start.rb and config.yaml files.
26
+ (2) teuton check PATH/TO/DIR --cname=demo , Check content of start.rb and demo.yaml files:
26
27
 
27
- (2) teuton check path/to/dir/foo --cname=demo
28
- , Check content of start.rb and demo.yaml files.
28
+ (3) teuton check PATH/TO/DIR --panelconfig , Only show config file recomendations
29
29
 
30
- (3) teuton check path/to/file/foo.rb
31
- , Check content of foo.rb and foo.yaml files.
30
+ (4) teuton check PATH/TO/DIR/foo.rb , Check content of foo.rb and foo.yaml files.
32
31
 
33
- (4) teuton check path/to/file/foo.rb --cname=demo
34
- , Check content of foo.rb and demo.yaml files.
32
+ (5) teuton check PATH/TO/DIR/foo.rb --cname=demo , Check content of foo.rb and demo.yaml files.
35
33
 
36
34
  LONGDESC
37
35
  def check(projectpath)
@@ -1,5 +1,5 @@
1
1
  module Teuton
2
- VERSION = "2.4.4"
2
+ VERSION = "2.4.5"
3
3
  APPNAME = "teuton"
4
4
  GEMNAME = "teuton"
5
5
  DOCKERNAME = "dvarrui/#{GEMNAME}"
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.4.4
4
+ version: 2.4.5
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-02-23 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow