ec2-host 0.0.4 → 0.0.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
  SHA1:
3
- metadata.gz: 5aacb25f8051ceae178a193aeaa2cf7983c46cd2
4
- data.tar.gz: d269fbe81ec86d5e035c00036c023cfb450d1fc3
3
+ metadata.gz: 39704c796daf1f299897478088023581da20e9e0
4
+ data.tar.gz: 420dc9a3c497526a6c92b5333a7aed0d63c13968
5
5
  SHA512:
6
- metadata.gz: d04167693ae309a93e9563f43cbc9c3c77f5fb5f8b25f1d6f53163e430e213e3ad3ecef847d85feb8d8401613a12d0f10c2482e2c082ef0690592bce242ca3c4
7
- data.tar.gz: 7caa774a5fc6e848c8ed15139bcc0ad2146e4cfaaec5372638932e36c32d1fce272f4372f5fab06123acc8082ce36e668a7a629b9011595f5a357dad070cd589
6
+ metadata.gz: 680a2aa0ece4db079131213fc885020972f77126589d59ab6bda67e499fad5ebd04fdae9d7f44d462996a11305cab77d6892fd7e2ce18034d9bfc1acc5c32b7d
7
+ data.tar.gz: 79a0df038b0add1222c7317eea2c4da99ee633de7d2b47af409d726121acbd13d7b074a4c8e5de74e473e9a1a66508e3d0aa4a401335283703448b9711407fc0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.0.5 (2015/08/10)
2
+
3
+ Changes:
4
+
5
+ * Change the display of --info option
6
+
1
7
  # 0.0.4 (2015/08/10)
2
8
 
3
9
  Enhancement:
data/ec2-host.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "ec2-host"
3
- gem.version = '0.0.4'
3
+ gem.version = '0.0.5'
4
4
  gem.author = ['Naotoshi Seo']
5
5
  gem.email = ['sonots@gmail.com']
6
6
  gem.homepage = 'https://github.com/sonots/ec2-host'
@@ -62,8 +62,11 @@ class EC2
62
62
  def info
63
63
  if hostname and status and roles and tags and service
64
64
  # special treatment for DeNA ;)
65
- sprintf "%s:%s(%s)[%s]{%s}", \
66
- hostname, status, roles.join(' '), tags.join(' '), service
65
+ info = "#{hostname}:#{status}"
66
+ info << "(#{roles.join(' ')})" unless roles.empty?
67
+ info << "[#{tags.join(' ')}]" unless tags.empty?
68
+ info << "{#{service}}" unless service.empty?
69
+ info
67
70
  else
68
71
  HashUtil.except(self, :instance).to_s
69
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2-host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo