rivet 3.0.5 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/rivet/common/aws_utils.rb +8 -3
- data/lib/rivet/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17ff849c874e6617d87fde0075138cbb9dac7b76
|
4
|
+
data.tar.gz: 5ec8ea590f2a3ddba72425a40223d63e67cec0de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8861836069232f57ba7db9c660d9d8efeeb061ea5e19e19b7d5a52428f3dce600ff8b3d2d09d1ee6126c06c95cc0f755efde8ffdf78f7f0f9b4457885ce2b7c2
|
7
|
+
data.tar.gz: 3e5a12874b5e1ae0216706eb5e5382092d6749d1db5dae6a4059e0d824be6d6213b12d6f6918d0cd035d5cdbe122a198af674a5308ef48eb7c8f9381c231c91c
|
data/CHANGELOG.md
CHANGED
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
|
-
[
|
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
|
-
[
|
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
|
55
|
-
|
56
|
-
|
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
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
|
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-
|
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
|