rivet 3.0.5 → 3.1.0

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: 72ec75ab5d5a2c2fae55a1cbac82e306ef1e424b
4
- data.tar.gz: 6dfb2bb918e9a3fb5ea651abc3a88f455d0b1589
3
+ metadata.gz: 17ff849c874e6617d87fde0075138cbb9dac7b76
4
+ data.tar.gz: 5ec8ea590f2a3ddba72425a40223d63e67cec0de
5
5
  SHA512:
6
- metadata.gz: f49329736b4ad73648a2be03ef0265766dfa69fbbc12558b5d0fd9a76f46f37d89bd0c522e596d037801cf1abf4b9a7e620d156fe91634c94a2b851feb68b3b3
7
- data.tar.gz: 5593c85d3aeb3d3f303adfbdc2bb12d0a0024ae4aa14225c4aa6d6cef961522971fd2b774a1012a83040d90bd2237c2fad7e2ce14efb967b4428c1ba944601aa
6
+ metadata.gz: 8861836069232f57ba7db9c660d9d8efeeb061ea5e19e19b7d5a52428f3dce600ff8b3d2d09d1ee6126c06c95cc0f755efde8ffdf78f7f0f9b4457885ce2b7c2
7
+ data.tar.gz: 3e5a12874b5e1ae0216706eb5e5382092d6749d1db5dae6a4059e0d824be6d6213b12d6f6918d0cd035d5cdbe122a198af674a5308ef48eb7c8f9381c231c91c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Rivet CHANGELOG
2
2
  ===
3
3
 
4
+ 3.1.0 -
5
+ ---
6
+ * Rivet will now use ~/.aws/config if $AWS_CONFIG_FILE isn't set
7
+
4
8
  3.0.5 -
5
9
  ---
6
10
  * Adds the aws-sdk back to the gem dependencies as it is necessary.
data/README.md CHANGED
@@ -21,7 +21,7 @@ Setup
21
21
  AWS Credentials
22
22
  ---------------
23
23
 
24
- Rivet uses the python AWS CLI tools [https://github.com/aws/aws-cli] configuration format and file for it's AWS credentials. This means it looks for a file located at AWS\_CONFIG\_FILE.
24
+ Rivet uses the python AWS CLI tools [https://github.com/aws/aws-cli] configuration format and file for it's AWS credentials. This means it looks for a file located at AWS\_CONFIG\_FILE or ~/.aws/config if that is not set.
25
25
 
26
26
  Right now Rivet only uses the following options from the file:
27
27
 
@@ -33,12 +33,12 @@ Right now Rivet only uses the following options from the file:
33
33
  An example config could look as follows:
34
34
 
35
35
  ```ini
36
- [profile default]
36
+ [default]
37
37
  aws_access_key_id=<YOUR ACCESS KEY ID>
38
38
  aws_secret_access_key=<YOUR SECRET ACCESS KEY>
39
39
  region=us-east-1
40
40
 
41
- [profile foo]
41
+ [foo]
42
42
  aws_access_key_id=<YOUR ACCESS KEY ID>
43
43
  aws_secret_access_key=<YOUR SECRET_ACCESS KEY>
44
44
  region=us-west-2
@@ -51,9 +51,14 @@ module Rivet
51
51
  end
52
52
 
53
53
  def self.config_parser
54
- if ENV['AWS_CONFIG_FILE']
55
- parse_profile_text(File.read(ENV['AWS_CONFIG_FILE']))
56
- end
54
+ parse_profile_text(File.read(aws_config_dir)) if aws_config_dir
55
+ end
56
+
57
+ def self.aws_config_dir
58
+ default_dir = File.join(Dir.home,".aws","config")
59
+ config_dir = ENV['AWS_CONFIG_FILE']
60
+ config_dir = default_dir if (File.exist?(default_dir) && config_dir.nil?)
61
+ config_dir
57
62
  end
58
63
 
59
64
  def self.set_aws_credentials(profile)
data/lib/rivet/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Rivet
4
- VERSION = '3.0.5'
4
+ VERSION = '3.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rivet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Bianco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1
@@ -111,7 +111,6 @@ files:
111
111
  - LICENSE
112
112
  - README.md
113
113
  - Rakefile
114
- - autoscale/defaults.rb
115
114
  - bin/rivet
116
115
  - example/autoscale/defaults.rb
117
116
  - example/autoscale/example_group.rb