thor-aws 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thor/aws.rb +2 -1
- data/lib/thor/aws/version.rb +4 -2
- data/thor-aws.gemspec +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587b96637caf8abc393a59803bc1fdea8c6ffd29
|
4
|
+
data.tar.gz: 08390e0bc98ef1890e7b22800ed53e80919a885f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b8a5a5847c422160fed2f79ff12db33f1c64140b9a2dc1850c64c6718181362ce45fab371e494a4675ef71c468435cd0739c0de46c024b7ebe62ac5f12cb68
|
7
|
+
data.tar.gz: 7665c438b53dffbdad6adf7af074088ff00ee588ed9c81fe7044ea968e4611b903577926980e4075c99842618117c422b482d1333f9bf84ab44c5dc87039a2a5
|
data/lib/thor/aws.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "thor"
|
2
2
|
require "thor/aws/version"
|
3
3
|
require "aws-sdk"
|
4
|
+
require "timeout"
|
4
5
|
|
5
6
|
module Thor::Aws
|
6
7
|
DEFAULT_REGION = "us-east-1"
|
@@ -59,7 +60,7 @@ module Thor::Aws
|
|
59
60
|
@own_region ||= begin
|
60
61
|
require "net/http"
|
61
62
|
|
62
|
-
timeout DEFAULT_REGION_TIMEOUT do
|
63
|
+
Timeout.timeout DEFAULT_REGION_TIMEOUT do
|
63
64
|
Net::HTTP.get("169.254.169.254", "/latest/meta-data/placement/availability-zone").chop
|
64
65
|
end
|
65
66
|
rescue
|
data/lib/thor/aws/version.rb
CHANGED
data/thor-aws.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- y13i
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.4.5
|
139
|
+
rubygems_version: 2.4.5.1
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Thor += AWS
|