jade_systems_toolbox 0.2.1 → 0.2.2
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/jade_systems_toolbox/cli.rb +5 -5
- data/lib/jade_systems_toolbox/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: 76cad5b2040d4fd08c70b6ce3e43b27a206be851eefe47e75d57cf558d8d5eeb
|
|
4
|
+
data.tar.gz: 25009287f1cca977b4e1ba1d887e74b7e0987e596ef48e7d0102a2bf975c32a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca8173bb3d3c1103b7e3e4c59f8f4fa5accc530f06e0d910ca9f69b878d998b778732e8563698cd144b1fdbfe74f9efa8d8605a7da9268fce513acc92a6b99b2
|
|
7
|
+
data.tar.gz: 6fc73063a5f60b69defebf5403290b000afc9ed1eb6bf3c473b9aae632f6c095a5819a58bc2a8a911835cc91c8a894a677ea97a9463f7fc9f778d2e317cfcc7e
|
|
@@ -98,14 +98,14 @@ module JadeSystemsToolbox
|
|
|
98
98
|
container_port = container_ports&.[](0) || container_port
|
|
99
99
|
path = "/#{path}" if path[0] != "/"
|
|
100
100
|
url = "#{protocol}://localhost:#{host_port_from_container_port(service:, container_port:)}#{path}"
|
|
101
|
-
if
|
|
101
|
+
if system("sh -c 'command -v open'")
|
|
102
102
|
# Real Unix :-)
|
|
103
|
-
system
|
|
104
|
-
elsif
|
|
103
|
+
system("open #{url}")
|
|
104
|
+
elsif system("sh -c 'command -v cmd.exe'")
|
|
105
105
|
# WSL because this opens a URL in the browser, which will be on Windows.
|
|
106
|
-
system
|
|
106
|
+
system("cmd.exe /c start #{url}")
|
|
107
107
|
else
|
|
108
|
-
raise ArgumentError, "
|
|
108
|
+
raise ArgumentError, "No suitable command available to open app."
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
111
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jade_systems_toolbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Larry Reid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|