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: d8423e2a17f9e8a139792033ae83b26554120e41dcca5c16f2060bfc5abbf174
4
- data.tar.gz: bd7d8d48505e4a81d025aab930d699b8684f585015347ee3f5fb18f3f6744d7f
3
+ metadata.gz: fad794aa8f7d5ca3760442990247890c6fbd525f3a2de6733444cbe51d597322
4
+ data.tar.gz: f1bcaa3bd1b6161be5e8a6ef119391568b2b334d4a433d51bee2e8461f532cfe
5
5
  SHA512:
6
- metadata.gz: 617153db6a841f9b95e7406d2bf0b32a2936af106a7c40f3dd36d4b4a28f75c3c9dd7fa1af482f3192d7f500aa2d7f2da9b18f121de9cccadaada54a9f589084
7
- data.tar.gz: 1cc7768227e3f5589b1485306ac411016088bd7bad19cfb13af1c4fc7bb22692564e5f68ef1a1f7a48b38bce98f63844a302966f58e0ea8aae1e7620a8325f28
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 = if File.exist?("/#{Dir.home}/.docker/run/docker.sock")
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
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.2.4'.freeze
9
+ VERSION = '2.2.5'.freeze
10
10
  end
11
11
  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
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 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport