crowbar-client 3.2.2 → 3.3.0
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/CHANGELOG.md +5 -0
- data/lib/crowbar/client/app/base.rb +1 -0
- data/lib/crowbar/client/app/entry.rb +6 -0
- data/lib/crowbar/client/config.rb +16 -0
- data/lib/crowbar/client/request/rest.rb +2 -0
- data/lib/crowbar/client/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2affc203d13b7b120d293b03b60bfa61bc25dd20
|
|
4
|
+
data.tar.gz: 98f8dfe16d10c394e106271a51d4381e01717d63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03ba81c6ea487f26c0e2c0234144daa9af9fd74adb65d8602c1f212c87efc2ce2ff8de17823abc432db13f2394d5aa4c31f39ff047b5d47802254a0acf82d840
|
|
7
|
+
data.tar.gz: 28f4541fed6b4e1a083f28152bc791113479a1b5ecda19aedc57742ff54c6ddb7403d013216355443d83e13f9fbed5bf71b6fab2ba0fca2bdd9eb41f7ffef04e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.3.0](https://github.com/crowbar/crowbar-client/releases/tag/v3.3.0) - 2017-03-30
|
|
4
|
+
|
|
5
|
+
* ENHANCEMENT
|
|
6
|
+
* Allow skipping the SSL verification step
|
|
7
|
+
|
|
3
8
|
## [3.2.2](https://github.com/crowbar/crowbar-client/releases/tag/v3.2.2) - 2017-03-08
|
|
4
9
|
|
|
5
10
|
* ENHANCEMENT
|
|
@@ -57,6 +57,12 @@ module Crowbar
|
|
|
57
57
|
aliases: ["-s"],
|
|
58
58
|
desc: "Specify server for connection"
|
|
59
59
|
|
|
60
|
+
class_option :verify_ssl,
|
|
61
|
+
type: :boolean,
|
|
62
|
+
default: Config.defaults[:verify_ssl],
|
|
63
|
+
aliases: ["-i"],
|
|
64
|
+
desc: "Verify server SSL certificate"
|
|
65
|
+
|
|
60
66
|
class_option :timeout,
|
|
61
67
|
type: :numeric,
|
|
62
68
|
default: Config.defaults[:timeout],
|
|
@@ -55,6 +55,7 @@ module Crowbar
|
|
|
55
55
|
username: default_username,
|
|
56
56
|
password: default_password,
|
|
57
57
|
server: default_server,
|
|
58
|
+
verify_ssl: default_verify_ssl,
|
|
58
59
|
timeout: default_timeout,
|
|
59
60
|
anonymous: default_anonymous,
|
|
60
61
|
apiversion: default_apiversion,
|
|
@@ -128,6 +129,21 @@ module Crowbar
|
|
|
128
129
|
ENV["CROWBAR_SERVER"] || "http://127.0.0.1:80"
|
|
129
130
|
end
|
|
130
131
|
|
|
132
|
+
#
|
|
133
|
+
# Define a default verify_ssl flag
|
|
134
|
+
#
|
|
135
|
+
# @return [Bool] the default verify_ssl flag
|
|
136
|
+
#
|
|
137
|
+
def default_verify_ssl
|
|
138
|
+
if ENV["CROWBAR_VERIFY_SSL"].present?
|
|
139
|
+
[
|
|
140
|
+
false, 0, "0", "f", "F", "false", "FALSE"
|
|
141
|
+
].include? ENV["CROWBAR_VERIFY_SSL"]
|
|
142
|
+
else
|
|
143
|
+
true
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
131
147
|
#
|
|
132
148
|
# Define a default timeout value
|
|
133
149
|
#
|
|
@@ -25,6 +25,7 @@ module Crowbar
|
|
|
25
25
|
user = options.fetch(:user, Config.username)
|
|
26
26
|
password = options.fetch(:password, Config.password)
|
|
27
27
|
auth_type = options.fetch(:auth_type, :digest)
|
|
28
|
+
verify_ssl = options.fetch(:verify_ssl, Config.verify_ssl)
|
|
28
29
|
|
|
29
30
|
Config.debug && RestClient.log = "stdout"
|
|
30
31
|
|
|
@@ -37,6 +38,7 @@ module Crowbar
|
|
|
37
38
|
user: user,
|
|
38
39
|
password: password,
|
|
39
40
|
auth_type: auth_type,
|
|
41
|
+
verify_ssl: verify_ssl,
|
|
40
42
|
timeout: Config.timeout
|
|
41
43
|
)
|
|
42
44
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crowbar-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Boerger
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-03-
|
|
13
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|