aws_cred_vault 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_cred_vault/toml.rb +1 -1
- data/lib/aws_cred_vault/version.rb +1 -1
- data/spec/lib/aws_cred_vault/toml_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d53f31eb0f1419563a89f6ac8069537fb6e4835
|
4
|
+
data.tar.gz: d62da46dad9fd945182a0efeb76bc54174c11d5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b99013c803f207c311d087319555449e71dbf3cf880cd0b70c56480acfb86bc1bf81b1e72ec4fb9fff03ce5e1d3d0194c4e5cb9730e3ca2920717f84aae474f5
|
7
|
+
data.tar.gz: 6d4f13b6b95991e0d3ad3c5a88450489008488672b435e4f78a960b9b35113391ca9b1d99161d5ba20b4c9fe7586c3b28672a247ec7a7dbdc36769e3c21510d4
|
data/lib/aws_cred_vault/toml.rb
CHANGED
@@ -12,7 +12,7 @@ module AwsCredVault
|
|
12
12
|
account_hash.map do |name, user_list|
|
13
13
|
account = Account.new name
|
14
14
|
user_list.each do |name, credentials|
|
15
|
-
account.add_user User.new name, credentials[
|
15
|
+
account.add_user User.new name, credentials["access_key"], credentials["secret"]
|
16
16
|
end
|
17
17
|
account
|
18
18
|
end
|
@@ -25,6 +25,14 @@ describe AwsCredVault::Toml do
|
|
25
25
|
expect(subject).to eq([])
|
26
26
|
end
|
27
27
|
end
|
28
|
+
|
29
|
+
it 'creates the right user name' do
|
30
|
+
expect(subject.first.users.first.access_key).to eq 'fenix'
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'creates the right secret' do
|
34
|
+
expect(subject.first.users.first.secret).to eq 'zealot!'
|
35
|
+
end
|
28
36
|
end
|
29
37
|
|
30
38
|
describe '#add_account' do
|