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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63db0241a84e83f5ce71fba0d11d55b73a8632c0
4
- data.tar.gz: 5badd6dd479892e5400f10d8f5aa90b9c5749bff
3
+ metadata.gz: a257c2b9d7c1941056c47abf82c1688bc6486086
4
+ data.tar.gz: d9085c8ce63cb22ddcab60d45c158fa3f5ce3f8f
5
5
  SHA512:
6
- metadata.gz: c93e6e73be7882ae604603ed88e45a4d198c8b9791d06bd1ac12877c62b2f5d225a08f264e15e04ce8ad66455bfcbc4495a09310a757e12d94aa0320c7bcd963
7
- data.tar.gz: 4dc606831d5034f8da00baa79d25e09c27355f1e2d558b1f0f84bc6cc2fecc55f33a9150a6e4ebd0d292ebb459dea2069dff9f6f22b00f26ac62bf6084d6f872
6
+ metadata.gz: f3b4f39df360b27386dd8128d342ea4e015b9eaf7eae8e489d4a96024d74504f22db0a59f5b52fdb84e7c08dc3a4a6a5932ee267c39390caff1df97794f9a643
7
+ data.tar.gz: 237c1d97427bfc82c7dab76d2f1011a9d89f2440c2940f3d330d39e1dc6dec3ed5cb46258956c72a58e85313cf6c727e05e39da4eeca9d91dba902f9accb0766
data/README.md CHANGED
@@ -71,3 +71,6 @@ domain "vpc" do
71
71
  ip "54.256.256.13"
72
72
  end
73
73
  ```
74
+
75
+ ## Similar tools
76
+ * [Codenize.tools](http://codenize.tools/)
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') {|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('' , '--debug') { options[:debug] = true }
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 = {}
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Eipmap
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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: 2016-03-28 00:00:00.000000000 Z
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.4.5.1
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).