firespring_dev_commands 2.2.4 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad794aa8f7d5ca3760442990247890c6fbd525f3a2de6733444cbe51d597322
|
4
|
+
data.tar.gz: f1bcaa3bd1b6161be5e8a6ef119391568b2b334d4a433d51bee2e8461f532cfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f2f88056bdf2ce4dfd8d4bcc5fb622f24f70bda104a14251ed4ffc92d74ea0609c3d564f951ba2b77c7c83a247b1d31b77abd1a8978ab8b2521e12be51bde82
|
7
|
+
data.tar.gz: 69397437d719f3b5e7f0099fab1c868c02af7db999a58d783348a43f1b4cd08b699b52c8a5dbb0b40e606b16369c2cf0cc645a75369ba44a7a0123e4683ba192
|
@@ -46,12 +46,14 @@ services:
|
|
46
46
|
::Docker.url = 'tcp://127.0.0.1:23750'
|
47
47
|
|
48
48
|
else
|
49
|
+
context = Dev::Common.new.run_command(
|
50
|
+
"docker context inspect --format '{{.Endpoints.docker.Host}}'",
|
51
|
+
capture: true
|
52
|
+
).to_s.strip
|
53
|
+
raise 'context is empty' unless context
|
54
|
+
|
49
55
|
# If a user based socket has been defined, default to that
|
50
|
-
::Docker.url =
|
51
|
-
"unix://#{Dir.home}/.docker/run/docker.sock"
|
52
|
-
elsif File.exist?("/#{Dir.home}/.docker/desktop/docker.sock")
|
53
|
-
"unix://#{Dir.home}/.docker/desktop/docker.sock"
|
54
|
-
end
|
56
|
+
::Docker.url = context
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firespring_dev_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|