eipmap 0.1.4.beta → 0.1.4.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eipmap/driver.rb +21 -2
- data/lib/eipmap/version.rb +1 -1
- 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: 2f50b37d4c7ccefce2ddc3b752af1b0227dd420d
|
4
|
+
data.tar.gz: 9e767e150ac68eee0c77bf09f2691c6a6b434be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770a11e025023fe0fcf3fd2c5863a8848c4c38edac078baf2599dd444e7796eeb32fb1ccf079af093ebe4bc5d233650879340333d8c898f945a384c88121972b
|
7
|
+
data.tar.gz: 77ae7466794ee92f20865c84859d4c40935fba13ae7485ac759449b66ab49ef1c3335d0677b3d2a10a479292700c3660192df6e28e4760d368f9edfc9b8439ba
|
data/lib/eipmap/driver.rb
CHANGED
@@ -52,7 +52,17 @@ class Eipmap::Driver
|
|
52
52
|
log_info[:instance_id] = instance_id
|
53
53
|
end
|
54
54
|
|
55
|
-
|
55
|
+
msg = "#{domain} > #{ip}: Associate"
|
56
|
+
|
57
|
+
if instance_id = actual_attrs[:instance_id]
|
58
|
+
instance_names = describe_instance_names([instance_id])
|
59
|
+
instance_name = instance_names.fetch(instance_id, instance_id)
|
60
|
+
msg << " from #{instance_name}"
|
61
|
+
end
|
62
|
+
|
63
|
+
msg << " to #{log_info.inspect}"
|
64
|
+
|
65
|
+
log(:info, msg, :color => :green)
|
56
66
|
|
57
67
|
unless_dry_run do
|
58
68
|
@ec2.associate_address(params)
|
@@ -68,7 +78,16 @@ class Eipmap::Driver
|
|
68
78
|
params[:public_ip] = ip
|
69
79
|
end
|
70
80
|
|
71
|
-
|
81
|
+
msg = "#{domain} > #{ip}: Dissociate"
|
82
|
+
|
83
|
+
|
84
|
+
if instance_id = actual_attrs[:instance_id]
|
85
|
+
instance_names = describe_instance_names([instance_id])
|
86
|
+
instance_name = instance_names.fetch(instance_id, instance_id)
|
87
|
+
msg << " from #{instance_name}"
|
88
|
+
end
|
89
|
+
|
90
|
+
log(:info, msg, :color => :red)
|
72
91
|
|
73
92
|
unless_dry_run do
|
74
93
|
@ec2.disassociate_address(params)
|
data/lib/eipmap/version.rb
CHANGED