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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/awsprofile.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43443a46a2df7cd95718a4286adcd9698f749b96
4
- data.tar.gz: 497f3e82a604b6f9a92a6565f81e983d0368d8c5
3
+ metadata.gz: 3521da8a1055a596dd2a59dc1afc4bbca8dfc451
4
+ data.tar.gz: 570a44f5f437fa9b9b1281deb6d1bb404e8d1340
5
5
  SHA512:
6
- metadata.gz: cc71cff392082de3ce365db4613891b4036d52ae51a9b1f08ab8705fb7fb1c4d223f9e3084c547443ddbf704d47c874242f06a21a75cae7e6d121ce90978d3f0
7
- data.tar.gz: bc932e8df1a15b2fd7ee2cc5ab7d86139b40b4308201324a41915d6f3748373c0e5a3b6e8e6561fb32cae994695daa4706cc9bed5e691b5b2d01bb6f2bc82509
6
+ metadata.gz: 4f7617d60b2f6681d6ca8fcfa0962da6b4db4928bd716d131aa9eea3cfd24692283d40d7a189e4954e63f5c03ee220af4e17b0a6d6c6d47438d8d2eaa44c3911
7
+ data.tar.gz: b7539446a61d6ca8ce2701b4f6c2ead20e9af8f98bd47617ce63d78bb1359d3a4cffa475d00d541f0eca107ebaabfbea62c4241629f820daa4589c97c6f8f380
@@ -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.0.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: http://rubygems.org/gems/awsprofile
20
+ homepage: https://github.com/kainam00/awsprofile
21
21
  licenses:
22
22
  - MIT
23
23
  metadata: {}