ec2-host 0.3.0 → 0.3.1

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: 1c1e3098faa215182eec03ab1acb20c6d76da12b
4
- data.tar.gz: 62a2919806dbcdfd730b5acac3286be46b17313f
3
+ metadata.gz: fae889d5827d0ad70013e335f5f3785a941bbcb5
4
+ data.tar.gz: 5456aabec1ed98dc10b84010d9a15af736437f39
5
5
  SHA512:
6
- metadata.gz: 0907f9fc019d2039a37479345b9567da16274cda8457a7f76e7bacb336ba76664438e399e75065dc61d2114c38fb64f4db0aeac3d7c3b7d40272757c6ae618da
7
- data.tar.gz: daf396298885bfe6571df343a9db3da2c283c1ca7e8799b01cc48dea4c352241d27758c5dbea5c95df571326140e6c3448c480882f3e16b5aa5e102632f67f5c
6
+ metadata.gz: 52a2fb57dc940b14fb0672977d240d089bccfb414b824c676a40b3a0a30465a0418e0cd2848a4d4362d7f737deb7d8076600a51b806bebee72fe79481d832b37
7
+ data.tar.gz: 56a30d8efa33b0643cf962be73db44e96b1bdae74686abddff19c6a765fc4312043e4c31371befa4baac8b331fa7f483fe480edc8df58d04941753b9aed7f937
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.1 (2016/04/21)
2
+
3
+ Enhancements:
4
+
5
+ * Add --all option
6
+
1
7
  # 0.3.0 (2016/04/21)
2
8
 
3
9
  Changes:
data/README.md CHANGED
@@ -112,8 +112,9 @@ Usage: ec2-host [options]
112
112
  --r2, --role2 one,two,three role2, the 2st part of role delimited by :
113
113
  --r3, --role3 one,two,three role3, the 3st part of role delimited by :
114
114
  --instance-id one,two,three instance_id
115
- --state one,two,three state (default: running)
116
- --monitoring one,two,three monitoring
115
+ --state one,two,three filter with instance state (default: running)
116
+ --monitoring one,two,three filter with instance monitoring
117
+ -a, --all list all hosts (remove default filter)
117
118
  --private-ip, --ip show private ip address instead of hostname
118
119
  --public-ip show public ip address instead of hostname
119
120
  -i, --info show host info
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.3.0'
3
+ gem.version = '0.3.1'
4
4
  gem.author = ['Naotoshi Seo']
5
5
  gem.email = ['sonots@gmail.com']
6
6
  gem.homepage = 'https://github.com/sonots/ec2-host'
data/lib/ec2/host/cli.rb CHANGED
@@ -43,10 +43,10 @@ class EC2
43
43
  op.on('--instance-id one,two,three', Array, "instance_id") {|v|
44
44
  opts[:instance_id] = v
45
45
  }
46
- op.on('--state one,two,three', Array, "instance state (default: running)") {|v|
46
+ op.on('--state one,two,three', Array, "filter with instance state (default: running)") {|v|
47
47
  opts[:state] = v
48
48
  }
49
- op.on('--monitoring one,two,three', Array, "monitoring") {|v|
49
+ op.on('--monitoring one,two,three', Array, "filter with instance monitoring") {|v|
50
50
  opts[:monitoring] = v
51
51
  }
52
52
  Config.optional_options.each do |opt, tag|
@@ -54,6 +54,14 @@ class EC2
54
54
  opts[opt.to_sym] = v
55
55
  }
56
56
  end
57
+ op.on('-a', '--all', "list all hosts (remove default filter)") {|v|
58
+ [:hostname, :role, :role1, :role2, :role3, :instance_id, :state, :monitoring].each do |key|
59
+ opts.delete(key)
60
+ end
61
+ Config.optional_options.each do |opt, tag|
62
+ opts.delete(opt.to_sym)
63
+ end
64
+ }
57
65
  op.on('--private-ip', '--ip', "show private ip address instead of hostname") {|v|
58
66
  opts[:private_ip] = v
59
67
  }
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo