builderator 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/builderator/util.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4695e9899231ab9dd8523045fbcaeb378fc85c7f
|
4
|
+
data.tar.gz: dffbda2a0efc219410b4517d62aab396f06b7d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a379d1f004e2542f9271d524015019ddb040f95b979253265b87d77baf3c69c579d84286458a7590084c66e1145fd73b1f84f52e670e49f126296c61ee6c5125
|
7
|
+
data.tar.gz: 523709de7d8b87929cab70358b2bbc133c4f20dce9d8494e8f35df32ed59564d353c46f0940fc2b5a7919298abd149eee0d9af6bb9766252c39f1a238559a636
|
data/lib/builderator/util.rb
CHANGED
@@ -106,8 +106,9 @@ module Builderator
|
|
106
106
|
external_ip = open('http://checkip.amazonaws.com').read.strip
|
107
107
|
cidr_ip = external_ip + '/32'
|
108
108
|
|
109
|
-
# Create a security group
|
110
|
-
|
109
|
+
# Create a security group with microsecond timestamp (to avoid collisions when using seconds)
|
110
|
+
ts_usec = (Time.now.to_f*1000000).to_i
|
111
|
+
resp = ec2.create_security_group(group_name: "BuilderatorSecurityGroupSSHOnly-#{ts_usec}",
|
111
112
|
description: "Created by Builderator at #{Time.now}")
|
112
113
|
group_id = resp[:group_id]
|
113
114
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: builderator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|