vagrant-aws-credentials 0.1.3 → 0.1.4

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: f97e2ba8a71e786cbba003c2acf18b425a40cdd2
4
- data.tar.gz: e2840223a41f2d4bfe9e4bac2dbbe109fd3ef492
3
+ metadata.gz: fb9ed21ca428e402f287722d7ec280a4ddcf3e66
4
+ data.tar.gz: ecf15c79125af2042793f11dd336999f551c757d
5
5
  SHA512:
6
- metadata.gz: 8812f4ddfc142f1d47de3c1b9ee995274c01bfcd31959ca00e4cdb8529cdcd7144c801909f43567451283daed9c47b52034cff65132fa1f085a435c1e2983e59
7
- data.tar.gz: 2a718b93a1dc1fe327a555728f4808ca7940746e8b1a2a6f882c85e502a8766ce6ad63700df5ac4b77a238531e1e6c1506a8152dc2d96ac732290dce325982cf
6
+ metadata.gz: f34a01b1c5c285d4bb32dfd9e1c148a41ca899edcbe826a161583297405b65cfc18c0531b876f987058122d762d073bb9c7c9aad450079e9bb619ec2d1fd5b2e
7
+ data.tar.gz: 7b3ecc62f25605b78de759e5397822f1c1bb3c93856204d1d1fdfed8e6e55771642371fef3ec0041bde1da24c5f042ddb5b8fe4bdf20887732e4c30859516a41
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Vagrant Aws Credentials
2
2
 
3
- This plugin intent is to serve as a bridge between any tool that follows the [AWS CLI Configuration Settings and Precedence](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#config-settings-and-precedence) and the `vagrant-aws` plugin configuration for AWS acess.
3
+ This plugin allows Vagrant to read your AWS Credentials, just configure which AWS profile to use.
4
+ It serves as an alternative while this [pull request](https://github.com/mitchellh/vagrant-aws/pull/441) isn't merged to `vagrant-aws` plugin.
4
5
 
5
6
  ## Installation
6
7
 
@@ -38,7 +39,7 @@ But a quick tip is to use as:
38
39
 
39
40
  ## Contributing
40
41
 
41
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vagrant-aws-credentials. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/datherra/vagrant-aws-credentials. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
42
43
 
43
44
 
44
45
  ## License
@@ -11,11 +11,12 @@ module VagrantPlugins
11
11
  end
12
12
 
13
13
  def finalize!
14
- @profile = 0 if @profile == UNSET_VALUE
15
- c = ::Aws::SharedCredentials.new(profile_name: @profile)
16
- ENV["VAGRANT_AWS_ACCESS_KEY"] = c.credentials.access_key_id
17
- ENV["VAGRANT_AWS_SECRET_ACCESS_KEY"] = c.credentials.secret_access_key
18
- ENV["VAGRANT_AWS_SESSION_TOKEN"] = c.credentials.session_token
14
+ unless @profile == UNSET_VALUE
15
+ c = ::Aws::SharedCredentials.new(profile_name: @profile)
16
+ ENV["VAGRANT_AWS_ACCESS_KEY"] = c.credentials.access_key_id
17
+ ENV["VAGRANT_AWS_SECRET_ACCESS_KEY"] = c.credentials.secret_access_key
18
+ ENV["VAGRANT_AWS_SESSION_TOKEN"] = c.credentials.session_token
19
+ end
19
20
  end
20
21
  end
21
22
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module AwsCredentials
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-aws-credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafa Nunes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler