ec2-host 0.3.0 → 0.3.1
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/CHANGELOG.md +6 -0
- data/README.md +3 -2
- data/ec2-host.gemspec +1 -1
- data/lib/ec2/host/cli.rb +10 -2
- 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: fae889d5827d0ad70013e335f5f3785a941bbcb5
|
|
4
|
+
data.tar.gz: 5456aabec1ed98dc10b84010d9a15af736437f39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52a2fb57dc940b14fb0672977d240d089bccfb414b824c676a40b3a0a30465a0418e0cd2848a4d4362d7f737deb7d8076600a51b806bebee72fe79481d832b37
|
|
7
|
+
data.tar.gz: 56a30d8efa33b0643cf962be73db44e96b1bdae74686abddff19c6a765fc4312043e4c31371befa4baac8b331fa7f483fe480edc8df58d04941753b9aed7f937
|
data/CHANGELOG.md
CHANGED
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
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
|
}
|