ec2i3 0.1.1 → 0.1.2
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ec2i3.rb +7 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f795a61f664566fea94dd8f9f226265e23c56364
|
4
|
+
data.tar.gz: f5188c2d325596410aff4b0c6222ef385e003e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07c92a1a7d1cfa21e8679c66b6a7cc19470b7b34c06047a2aa0e98b6fcdf7c038cba0faa59f18d71edef0f2dbda265f501b09f2a3d965140ebf57a8bc36c676
|
7
|
+
data.tar.gz: b700e2b9ef96545c88924e776d652e55bd247f3957fa8bf82b46e25cf3d87d7506c61ad9c87483c7b5febf14344659154c667c82ba85869a94a1558d42e14c4a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/ec2i3.rb
CHANGED
@@ -12,7 +12,7 @@ require 'dynarex-password'
|
|
12
12
|
|
13
13
|
class EC2i3 < InstantEC2
|
14
14
|
|
15
|
-
def initialize(reg, address: '127.0.0.1', port: '59000')
|
15
|
+
def initialize(reg, address: '127.0.0.1', port: '59000', async: false)
|
16
16
|
|
17
17
|
@address, @port = address, port
|
18
18
|
|
@@ -24,22 +24,26 @@ class EC2i3 < InstantEC2
|
|
24
24
|
enc_priv_key = entry.text('private_key').split(' ').map(&:to_i).pack('C*')
|
25
25
|
private_key = Encrypt.load(enc_priv_key, passphrase)
|
26
26
|
|
27
|
-
super credentials: [entry.text('access_key_id'), private_key]
|
27
|
+
super credentials: [entry.text('access_key_id'), private_key], async: async
|
28
28
|
@sps = SPSPub.new address: @address, port: @port
|
29
29
|
|
30
|
-
|
30
|
+
hooks = {
|
31
31
|
running: ->(ip){
|
32
32
|
|
33
33
|
msg = "EC2i3: the instance is now accessible from %s" % [ip]
|
34
|
+
puts msg
|
34
35
|
@sps.notice msg
|
35
36
|
|
36
37
|
},
|
37
38
|
stopping: ->(){
|
38
39
|
msg = "EC2i3: the instance is now stopping"
|
40
|
+
puts msg
|
39
41
|
@sps.notice msg
|
40
42
|
}
|
41
43
|
}
|
42
44
|
|
45
|
+
@hooks.merge! hooks
|
46
|
+
|
43
47
|
end
|
44
48
|
|
45
49
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|