builderator 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/builderator/util.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fb4ef86c45cb16fe6e55dfd1ccd041497c81841
4
- data.tar.gz: 3575be68dc9cc77d5777c013fe94f0ad7c311906
3
+ metadata.gz: 4695e9899231ab9dd8523045fbcaeb378fc85c7f
4
+ data.tar.gz: dffbda2a0efc219410b4517d62aab396f06b7d0c
5
5
  SHA512:
6
- metadata.gz: 8957a669718384c61f98f0586bc852ef4ea318943f24d53a75e5e6dbdeafa02664098c8c641a4f227799e21c3f44ddc7b11345c1706e529b609077a92226b8e0
7
- data.tar.gz: 9e071245a11d147a245a1fdfa851b09623db62e5c744c1f6fca542e2fc59e102f7b8415cadbeea366eb956f630c18ad762fb955a0b5cd603205e568acfedf8ec
6
+ metadata.gz: a379d1f004e2542f9271d524015019ddb040f95b979253265b87d77baf3c69c579d84286458a7590084c66e1145fd73b1f84f52e670e49f126296c61ee6c5125
7
+ data.tar.gz: 523709de7d8b87929cab70358b2bbc133c4f20dce9d8494e8f35df32ed59564d353c46f0940fc2b5a7919298abd149eee0d9af6bb9766252c39f1a238559a636
@@ -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
- resp = ec2.create_security_group(group_name: "BuilderatorSecurityGroupSSHOnly-#{Time.now.to_i}",
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.1
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-14 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake