morpheus-cli 2.11.3 → 2.11.3.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/lib/morpheus/cli/cli_command.rb +8 -6
- data/lib/morpheus/cli/remote.rb +3 -1
- data/lib/morpheus/cli/shell.rb +5 -0
- data/lib/morpheus/cli/version.rb +1 -1
- 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: 836015cb51a22a6a3da1217038e96675f6876044
|
4
|
+
data.tar.gz: b33d6a043d810fcd2a3bfaefaaf671eeee21cf96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9343e8835af95275215825186ad1162ffcb83288a39df86f5bdf5a21b145e4ba018f69d194b389f9a983d592e7ee5854b00ff93b3fd9c50f8d8666682c13c7
|
7
|
+
data.tar.gz: d8b85d7f7daece9b2e113bdf7fcad9cfeaaf0541a5a64e39cf3950a2ff503e47bfc1147be7dbad53154c5b486217d6c0792b276006a5795febb59d49d997fd50
|
@@ -551,13 +551,15 @@ module Morpheus
|
|
551
551
|
# this should just be an attribute of the api client
|
552
552
|
# for now, this fixes the issue where passing --insecure or --remote
|
553
553
|
# would then apply to all subsequent commands...
|
554
|
-
if
|
555
|
-
|
556
|
-
else
|
557
|
-
if appliance[:insecure] && Morpheus::RestClient.ssl_verification_enabled?
|
554
|
+
if !Morpheus::Cli::Shell.insecure
|
555
|
+
if options[:insecure]
|
558
556
|
Morpheus::RestClient.enable_ssl_verification = false
|
559
|
-
|
560
|
-
Morpheus::RestClient.
|
557
|
+
else
|
558
|
+
if appliance[:insecure] && Morpheus::RestClient.ssl_verification_enabled?
|
559
|
+
Morpheus::RestClient.enable_ssl_verification = false
|
560
|
+
elsif !appliance[:insecure] && !Morpheus::RestClient.ssl_verification_enabled?
|
561
|
+
Morpheus::RestClient.enable_ssl_verification = true
|
562
|
+
end
|
561
563
|
end
|
562
564
|
end
|
563
565
|
|
data/lib/morpheus/cli/remote.rb
CHANGED
@@ -1140,7 +1140,9 @@ EOT
|
|
1140
1140
|
end
|
1141
1141
|
|
1142
1142
|
# todo: this insecure flag needs to applied everywhere now tho..
|
1143
|
-
|
1143
|
+
if app_map[:insecure]
|
1144
|
+
Morpheus::RestClient.enable_ssl_verification = false
|
1145
|
+
end
|
1144
1146
|
# Morpheus::RestClient.enable_http = app_map[:insecure].to_s == 'true'
|
1145
1147
|
setup_interface = Morpheus::SetupInterface.new(app_url)
|
1146
1148
|
begin
|
data/lib/morpheus/cli/shell.rb
CHANGED
@@ -24,6 +24,10 @@ class Morpheus::Cli::Shell
|
|
24
24
|
@@instance = self.new
|
25
25
|
end
|
26
26
|
|
27
|
+
def self.insecure
|
28
|
+
!!(defined?(@@insecure) && @@insecure == true)
|
29
|
+
end
|
30
|
+
|
27
31
|
attr_accessor :prompt #, :angry_prompt
|
28
32
|
|
29
33
|
def initialize()
|
@@ -107,6 +111,7 @@ class Morpheus::Cli::Shell
|
|
107
111
|
@norc = true
|
108
112
|
end
|
109
113
|
opts.on('-I','--insecure', "Allow for insecure HTTPS communication i.e. bad SSL certificate") do |val|
|
114
|
+
@@insecure = true
|
110
115
|
Morpheus::RestClient.enable_ssl_verification = false
|
111
116
|
end
|
112
117
|
opts.on('-C','--nocolor', "Disable ANSI coloring") do
|
data/lib/morpheus/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morpheus-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.3
|
4
|
+
version: 2.11.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-06-
|
14
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|