openstudio-aws 0.4.0 → 0.4.1
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
- data/CHANGELOG.md +3 -0
- data/lib/openstudio/aws/version.rb +1 -1
- data/lib/openstudio/lib/openstudio_aws_instance.rb +3 -3
- 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: 9b81ed7c4d1b87e753f5c3d28c7989e5554dec61
|
|
4
|
+
data.tar.gz: d5e9b77e4946cc735e26e3333b244bf1bba19c2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf7e12703f17dda2e52797e1ea5dd01bd3cfd96ae8afe749d0f7e1f3763e44229340533781c8ea682906f71d9855688005cad63684782cf69ce3e921d8bb540
|
|
7
|
+
data.tar.gz: d8e49b86d923beaf797d5a087b2a29bf07998d73c54f1bb6de1e75cbcf3974363bc2d8ed81761f41126878ecb979cf9d3b5fa7d9b7479a0981e50c179c40cbe2
|
data/CHANGELOG.md
CHANGED
|
@@ -317,7 +317,7 @@ class OpenStudioAwsInstance
|
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
# Send a command through SSH Shell to an instance.
|
|
320
|
-
# Need to pass
|
|
320
|
+
# Need to pass the command as a string.
|
|
321
321
|
def shell_command(command, load_env = true)
|
|
322
322
|
logger.info("ssh_command #{command} with load environment #{load_env}")
|
|
323
323
|
command = "source /etc/profile; source ~/.bash_profile; #{command}" if load_env
|
|
@@ -343,7 +343,7 @@ class OpenStudioAwsInstance
|
|
|
343
343
|
logger.info('key mismatch, retry')
|
|
344
344
|
sleep 2
|
|
345
345
|
retry
|
|
346
|
-
rescue SystemCallError, Timeout::Error => e
|
|
346
|
+
rescue SystemCallError, Net::SSH::ConnectionTimeout, Timeout::Error => e
|
|
347
347
|
# port 22 might not be available immediately after the instance finishes launching
|
|
348
348
|
sleep 2
|
|
349
349
|
logger.info('SystemCallError, Waiting for SSH to become available')
|
|
@@ -387,7 +387,7 @@ class OpenStudioAwsInstance
|
|
|
387
387
|
logger.info('key mismatch, retry')
|
|
388
388
|
sleep 10
|
|
389
389
|
retry
|
|
390
|
-
rescue SystemCallError, Timeout::Error => e
|
|
390
|
+
rescue SystemCallError, Net::SSH::ConnectionTimeout, Timeout::Error => e
|
|
391
391
|
# port 22 might not be available immediately after the instance finishes launching
|
|
392
392
|
sleep 10
|
|
393
393
|
logger.info('Timeout. Perhaps there is a communication error to EC2? Will try again in 10 seconds')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstudio-aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicholas Long
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-scp
|