awsprofile 0.0.0 → 0.1.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/lib/awsprofile.rb +1 -0
- 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: 3521da8a1055a596dd2a59dc1afc4bbca8dfc451
|
|
4
|
+
data.tar.gz: 570a44f5f437fa9b9b1281deb6d1bb404e8d1340
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f7617d60b2f6681d6ca8fcfa0962da6b4db4928bd716d131aa9eea3cfd24692283d40d7a189e4954e63f5c03ee220af4e17b0a6d6c6d47438d8d2eaa44c3911
|
|
7
|
+
data.tar.gz: b7539446a61d6ca8ce2701b4f6c2ead20e9af8f98bd47617ce63d78bb1359d3a4cffa475d00d541f0eca107ebaabfbea62c4241629f820daa4589c97c6f8f380
|
data/lib/awsprofile.rb
CHANGED
|
@@ -6,6 +6,7 @@ class Awsprofile
|
|
|
6
6
|
def initialize(profilename)
|
|
7
7
|
# Exception for using roles, this can probably be done via automatic detection
|
|
8
8
|
# But this is nice and simple
|
|
9
|
+
@config = Hash.new()
|
|
9
10
|
if profilename == "role"
|
|
10
11
|
# Get the current region from the metadata service
|
|
11
12
|
@config["region"] = open("http://169.254.169.254/latest/meta-data/placement/availability-zone").each.first(1)[0][0..-2]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awsprofile
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitriy M
|
|
@@ -17,7 +17,7 @@ extensions: []
|
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/awsprofile.rb
|
|
20
|
-
homepage:
|
|
20
|
+
homepage: https://github.com/kainam00/awsprofile
|
|
21
21
|
licenses:
|
|
22
22
|
- MIT
|
|
23
23
|
metadata: {}
|