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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9a12cd70bc592eb64710b398e0dd40bf3cdcd6
4
- data.tar.gz: 5510348a79a4a5d21fb1ca2b264bc750c7868c62
3
+ metadata.gz: 9b81ed7c4d1b87e753f5c3d28c7989e5554dec61
4
+ data.tar.gz: d5e9b77e4946cc735e26e3333b244bf1bba19c2f
5
5
  SHA512:
6
- metadata.gz: 86d37f406f4bb02abd473be6a6b58e5f5ae29e676cb6a87e06723ced3664170844d1817c9081aa9429e3149b7d624a4ff61fe8a300124246bd35224493f19d81
7
- data.tar.gz: 573698fb2edfc82c380d17fb2a9b09f21c47fef6c25cebe0ecb260ab1f1f631eecf9ba9ba5ba71fa50c7033ff39bce0e88b0094356973c94b839230f0dae371f
6
+ metadata.gz: cdf7e12703f17dda2e52797e1ea5dd01bd3cfd96ae8afe749d0f7e1f3763e44229340533781c8ea682906f71d9855688005cad63684782cf69ce3e921d8bb540
7
+ data.tar.gz: d8e49b86d923beaf797d5a087b2a29bf07998d73c54f1bb6de1e75cbcf3974363bc2d8ed81761f41126878ecb979cf9d3b5fa7d9b7479a0981e50c179c40cbe2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  OpenStudio AWS Gem Change Log
2
2
  ==================================
3
3
 
4
+ Version 0.4.1
5
+ * Fix the SSH Timeout Exception
6
+
4
7
  Version 0.4.0
5
8
  -------------
6
9
  * When listing the AMI, allow future versions of OpenStudio to return the latest stable version
@@ -1,5 +1,5 @@
1
1
  module OpenStudio
2
2
  module Aws
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -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 the command as a string.
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp