geordi 2.12.2 → 2.12.3
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/Gemfile.lock +1 -1
- data/lib/geordi/commands/docker.rb +1 -1
- data/lib/geordi/docker.rb +1 -1
- data/lib/geordi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5895784a1a8f9b3736ad75362cb39de63e9fd9d6a110c797ae2db1a80afce5fe
|
|
4
|
+
data.tar.gz: 15479d1cd51aca6abf203687facbfc6636bb67e137b5a31ebb7a28e3d430bda2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f647a99c2815d66971739927401b527e2c01fcf74dd461fe5941c73b2fd3e68996be2871a9007f76b2dcf54388c377d9838d662e32fc2185e4a976daefbd26a
|
|
7
|
+
data.tar.gz: 3e041fe4095f22db1071a774024e3d0efda2c5ad15066cfd4fec33b2aa4547230f22194e1ac7af26c9a1977110e03a58c2f6282494812bc076762271572f9a51
|
data/Gemfile.lock
CHANGED
|
@@ -5,7 +5,7 @@ class DockerCLI < Thor
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
desc 'shell', 'Open a shell in the main docker container for the current project.'
|
|
8
|
-
option :secondary, default
|
|
8
|
+
option :secondary, :default => false, :type => :boolean
|
|
9
9
|
map 'shell' => '_shell'
|
|
10
10
|
def _shell
|
|
11
11
|
docker.shell(:secondary => options[:secondary])
|
data/lib/geordi/docker.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Geordi
|
|
|
37
37
|
running_containers = execute(:`, 'docker-compose ps').split("\n")
|
|
38
38
|
if (main_container_line = running_containers.grep(/_main_run/).first)
|
|
39
39
|
container_name = main_container_line.split(' ').first
|
|
40
|
-
execute(:
|
|
40
|
+
execute(:exec, 'docker', 'exec', '-it', container_name, 'bash')
|
|
41
41
|
else
|
|
42
42
|
fail('Could not find a running shell. Start without --secondary first.')
|
|
43
43
|
end
|
data/lib/geordi/version.rb
CHANGED