percheron 0.7.3 → 0.7.4
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/.travis.yml +2 -0
- data/Gemfile +1 -1
- data/lib/percheron/container.rb +4 -0
- data/lib/percheron/core_extensions.rb +1 -1
- data/lib/percheron/formatters/stack/table.rb +4 -0
- data/lib/percheron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 351631398d6695f7c3f4ff15567e095bbea8cc0c
|
4
|
+
data.tar.gz: bf3a8b1f2ab2582027dce70a300be3c7c7044665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df85d70b9c88b68ae7822cc3ed35e7eb88b72772256e60e3cb9e3b46d04e56c786119705151e9b3aaf666530b0cc173142253a9d3f6cd5cb7abe7a2bf6edc1fe
|
7
|
+
data.tar.gz: 8fcc500b642f047838c430f2089852054d300cf34040749fd87a4616f859aa159016e312ab3f2f0beda7205798f735cd2bfd2edb7dc82b5d5a2b633a4c1c9694
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/lib/percheron/container.rb
CHANGED
@@ -117,6 +117,10 @@ module Percheron
|
|
117
117
|
{ version: version.to_s, created_by: "Percheron #{Percheron::VERSION}" }
|
118
118
|
end
|
119
119
|
|
120
|
+
def ip
|
121
|
+
exists? ? info.NetworkSettings.IPAddress : 'n/a'
|
122
|
+
end
|
123
|
+
|
120
124
|
def update_dockerfile_md5!
|
121
125
|
md5 = current_dockerfile_md5
|
122
126
|
$logger.info "Setting MD5 for '#{name}' container to #{md5}"
|
@@ -24,24 +24,28 @@ module Percheron
|
|
24
24
|
'Container',
|
25
25
|
'ID',
|
26
26
|
'Running?',
|
27
|
+
'IP',
|
27
28
|
'Ports',
|
28
29
|
'Volumes',
|
29
30
|
'Version'
|
30
31
|
]
|
31
32
|
end
|
32
33
|
|
34
|
+
# rubocop:disable Metrics/MethodLength
|
33
35
|
def rows
|
34
36
|
stack.containers.map do |_, container|
|
35
37
|
[
|
36
38
|
container.name,
|
37
39
|
container.id,
|
38
40
|
startable(container),
|
41
|
+
container.ip,
|
39
42
|
container.ports.join(', '),
|
40
43
|
container.volumes.join(', '),
|
41
44
|
(container.built_version == '0.0.0') ? '' : container.built_version
|
42
45
|
]
|
43
46
|
end
|
44
47
|
end
|
48
|
+
# rubocop:enable Metrics/MethodLength
|
45
49
|
|
46
50
|
def startable(container)
|
47
51
|
if container.startable?
|
data/lib/percheron/version.rb
CHANGED