eipmap 0.1.4 → 0.1.5
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/README.md +3 -0
- data/bin/eipmap +14 -13
- data/lib/eipmap/client.rb +8 -0
- data/lib/eipmap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a257c2b9d7c1941056c47abf82c1688bc6486086
|
4
|
+
data.tar.gz: d9085c8ce63cb22ddcab60d45c158fa3f5ce3f8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b4f39df360b27386dd8128d342ea4e015b9eaf7eae8e489d4a96024d74504f22db0a59f5b52fdb84e7c08dc3a4a6a5932ee267c39390caff1df97794f9a643
|
7
|
+
data.tar.gz: 237c1d97427bfc82c7dab76d2f1011a9d89f2440c2940f3d330d39e1dc6dec3ed5cb46258956c72a58e85313cf6c727e05e39da4eeca9d91dba902f9accb0766
|
data/README.md
CHANGED
data/bin/eipmap
CHANGED
@@ -25,19 +25,20 @@ ARGV.options do |opt|
|
|
25
25
|
profile_name = nil
|
26
26
|
credentials_path = nil
|
27
27
|
|
28
|
-
opt.on('-p', '--profile PROFILE_NAME')
|
29
|
-
opt.on('' , '--credentials-path PATH')
|
30
|
-
opt.on('-k', '--access-key ACCESS_KEY')
|
31
|
-
opt.on('-s', '--secret-key SECRET_KEY')
|
32
|
-
opt.on('-r', '--region REGION')
|
33
|
-
opt.on('-a', '--apply')
|
34
|
-
opt.on('-f', '--file FILE')
|
35
|
-
opt.on('', '--dry-run')
|
36
|
-
opt.on('', '--allow-reassociation')
|
37
|
-
opt.on('-e', '--export')
|
38
|
-
opt.on('-o', '--output FILE')
|
39
|
-
opt.on('' , '--no-color')
|
40
|
-
opt.on('' , '--
|
28
|
+
opt.on('-p', '--profile PROFILE_NAME') {|v| profile_name = v }
|
29
|
+
opt.on('' , '--credentials-path PATH') {|v| credentials_path = v }
|
30
|
+
opt.on('-k', '--access-key ACCESS_KEY') {|v| access_key = v }
|
31
|
+
opt.on('-s', '--secret-key SECRET_KEY') {|v| secret_key = v }
|
32
|
+
opt.on('-r', '--region REGION') {|v| region = v }
|
33
|
+
opt.on('-a', '--apply') { mode = :apply }
|
34
|
+
opt.on('-f', '--file FILE') {|v| file = v }
|
35
|
+
opt.on('', '--dry-run') { options[:dry_run] = true }
|
36
|
+
opt.on('', '--allow-reassociation') { options[:allow_reassociation] = true }
|
37
|
+
opt.on('-e', '--export') { mode = :export }
|
38
|
+
opt.on('-o', '--output FILE') {|v| output_file = v }
|
39
|
+
opt.on('' , '--no-color') { options[:color] = false }
|
40
|
+
opt.on('' , '--domain DOMAIN', ['standard', 'vpc']) {|v| options[:domain] = v }
|
41
|
+
opt.on('' , '--debug') { options[:debug] = true }
|
41
42
|
opt.parse!
|
42
43
|
|
43
44
|
aws_opts = {}
|
data/lib/eipmap/client.rb
CHANGED
@@ -31,6 +31,10 @@ class Eipmap::Client
|
|
31
31
|
updated = false
|
32
32
|
|
33
33
|
expected.each do |domain, expected_ips|
|
34
|
+
if @options[:domain] and @options[:domain] != domain
|
35
|
+
next
|
36
|
+
end
|
37
|
+
|
34
38
|
actual_ips = actual.delete(domain)
|
35
39
|
|
36
40
|
if actual_ips
|
@@ -44,6 +48,10 @@ class Eipmap::Client
|
|
44
48
|
end
|
45
49
|
|
46
50
|
actual.each do |domain, ips|
|
51
|
+
if @options[:domain] and @options[:domain] != domain
|
52
|
+
next
|
53
|
+
end
|
54
|
+
|
47
55
|
ips.each do |ip, attrs|
|
48
56
|
warn_not_defined(domain, ip)
|
49
57
|
end
|
data/lib/eipmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eipmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.5.2
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Eipmap is a tool to manage Elastic IP Addresses (EIP).
|