ec2-host 0.2.4 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 102536f35c6b99c8c74bbb46965b3c402e7d9063
4
- data.tar.gz: 4e7c94b2b0fe59440cb39dc8dbc37c43d476f12b
3
+ metadata.gz: 1c1e3098faa215182eec03ab1acb20c6d76da12b
4
+ data.tar.gz: 62a2919806dbcdfd730b5acac3286be46b17313f
5
5
  SHA512:
6
- metadata.gz: f8a3e53b568cb501c9de400687d54a06f266d6116e1471894db05bc9af2236a12b8dd331d4d66664567420dc60b3ae188e240f8af59419bfbf75e6e6546b6dc2
7
- data.tar.gz: b6bc74ff28fce3ce0ec1fb24d2ae3d136a76142852f10c6eb1b21d902d6e25a8b2d2ecf2abea9e9a4239b79763fc2735f383d1ffda16bb3a12596db6f137edd3
6
+ metadata.gz: 0907f9fc019d2039a37479345b9567da16274cda8457a7f76e7bacb336ba76664438e399e75065dc61d2114c38fb64f4db0aeac3d7c3b7d40272757c6ae618da
7
+ data.tar.gz: daf396298885bfe6571df343a9db3da2c283c1ca7e8799b01cc48dea4c352241d27758c5dbea5c95df571326140e6c3448c480882f3e16b5aa5e102632f67f5c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.0 (2016/04/21)
2
+
3
+ Changes:
4
+
5
+ * List only running hosts as default via CLI
6
+
1
7
  # 0.2.4 (2015/09/18)
2
8
 
3
9
  Changes:
data/README.md CHANGED
@@ -48,8 +48,8 @@ See [sample.conf](./sample.conf)
48
48
 
49
49
  ```
50
50
  $ ec2-host -j
51
- {"hostname":"test","roles":["admin:ami","test"],"region":"ap-northeast-1","instance_id":"i-85900780","private_ip_address":"172.31.23.50","public_ip_address":null,"launch_time":"2013-09-16 06:14:20 UTC","state":"stopped","monitoring":"disabled"}
52
- {"hostname":"ip-172-31-6-194","roles":["isucon4:qual"],"region":"ap-northeast-1","instance_id":"i-f88cc8e1","private_ip_address":"172.31.6.194","public_ip_address":null,"launch_time":"2014-10-20 15:57:23 UTC","state":"stopped","monitoring":"disabled"}
51
+ {"hostname":"test","roles":["admin:ami","test"],"region":"ap-northeast-1","instance_id":"i-85900780","private_ip_address":"172.31.23.50","public_ip_address":null,"launch_time":"2013-09-16 06:14:20 UTC","state":"running","monitoring":"disabled"}
52
+ {"hostname":"ip-172-31-6-194","roles":["isucon4:qual"],"region":"ap-northeast-1","instance_id":"i-f88cc8e1","private_ip_address":"172.31.6.194","public_ip_address":null,"launch_time":"2014-10-20 15:57:23 UTC","state":"running","monitoring":"disabled"}
53
53
  ```
54
54
 
55
55
  ```
@@ -82,7 +82,7 @@ $ ec2-host --pretty-json
82
82
  "private_ip_address": "172.31.23.50",
83
83
  "public_ip_address": null,
84
84
  "launch_time": "2013-09-16 06:14:20 UTC",
85
- "state": "stopped",
85
+ "state": "running",
86
86
  "monitoring": "disabled"
87
87
  },
88
88
  {
@@ -95,7 +95,7 @@ $ ec2-host --pretty-json
95
95
  "private_ip_address": "172.31.6.194",
96
96
  "public_ip_address": null,
97
97
  "launch_time": "2014-10-20 15:57:23 UTC",
98
- "state": "stopped",
98
+ "state": "running",
99
99
  "monitoring": "disabled"
100
100
  }
101
101
  ]
@@ -112,11 +112,8 @@ 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
115
+ --state one,two,three state (default: running)
116
116
  --monitoring one,two,three monitoring
117
- --tag one,two,three tag
118
- --service one,two,three service
119
- --status one,two,three status
120
117
  --private-ip, --ip show private ip address instead of hostname
121
118
  --public-ip show public ip address instead of hostname
122
119
  -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.2.4'
3
+ gem.version = '0.3.0'
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
@@ -21,7 +21,9 @@ class EC2
21
21
  end
22
22
  end
23
23
 
24
- opts = {}
24
+ opts = {
25
+ state: ["running"]
26
+ }
25
27
 
26
28
  op.on('--hostname one,two,three', Array, "name or private_dns_name") {|v|
27
29
  opts[:hostname] = v
@@ -41,7 +43,7 @@ class EC2
41
43
  op.on('--instance-id one,two,three', Array, "instance_id") {|v|
42
44
  opts[:instance_id] = v
43
45
  }
44
- op.on('--state one,two,three', Array, "state") {|v|
46
+ op.on('--state one,two,three', Array, "instance state (default: running)") {|v|
45
47
  opts[:state] = v
46
48
  }
47
49
  op.on('--monitoring one,two,three', Array, "monitoring") {|v|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2-host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
- rubygems_version: 2.4.5
219
+ rubygems_version: 2.5.1
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Search hosts on AWS EC2