percheron 0.7.3 → 0.7.4

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
  SHA1:
3
- metadata.gz: d1ba6e0501b9cf6ab5cb77737fec3fb01de42339
4
- data.tar.gz: 603bd092e32325a8f7048836cc6bf591a34968da
3
+ metadata.gz: 351631398d6695f7c3f4ff15567e095bbea8cc0c
4
+ data.tar.gz: bf3a8b1f2ab2582027dce70a300be3c7c7044665
5
5
  SHA512:
6
- metadata.gz: c7c5dc74228d637d145daf3e7179392b3919d9e575573285a0d57ef5c1540589fe2c657d4a30d6568a3e2be482a42d20b9399ea56e8fa6a15cf9dd73d36d792c
7
- data.tar.gz: 998bc9494e00c05e73ff9667ecd51502315208aee1f9900a40854832b072a68a8f93e3b70c0629fde4336c7fb7207d112bf2dade4eaa75019ddbf0bf2933446f
6
+ metadata.gz: df85d70b9c88b68ae7822cc3ed35e7eb88b72772256e60e3cb9e3b46d04e56c786119705151e9b3aaf666530b0cc173142253a9d3f6cd5cb7abe7a2bf6edc1fe
7
+ data.tar.gz: 8fcc500b642f047838c430f2089852054d300cf34040749fd87a4616f859aa159016e312ab3f2f0beda7205798f735cd2bfd2edb7dc82b5d5a2b633a4c1c9694
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0
4
+ - 2.1
3
5
  - 2.2
4
6
  branches:
5
7
  only:
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ group :test do
7
7
  end
8
8
 
9
9
  group :development do
10
- gem 'pry-byebug', '~> 3.0', require: false
10
+ gem 'pry-byebug', '~> 3.0', platforms: [ :ruby_20 ], require: false
11
11
  gem 'awesome_print', '~> 1.0', require: false
12
12
  end
@@ -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,4 +24,4 @@ module Percheron
24
24
  end
25
25
  end
26
26
 
27
- Array.include(Percheron::CoreExtensions::Array::Extras)
27
+ Array.send(:include, Percheron::CoreExtensions::Array::Extras)
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Percheron
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percheron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash McKenzie