aws_runas 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data/CHANGELOG.md +8 -0
- data/README.md +4 -0
- data/aws_runas.gemspec +8 -7
- data/lib/aws_runas/config.rb +1 -1
- data/lib/aws_runas/version.rb +1 -1
- data/spec/aws_runas/config_spec.rb +7 -1
- data/spec/helpers/files/aws_config +1 -1
- data/spec/spec_helper.rb +4 -0
- data.tar.gz.sig +0 -0
- metadata +30 -15
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 166b3e595ae6aa7dd121a945715a9eff29aae90c
|
4
|
+
data.tar.gz: 76ce3d0b5522a93ce950bf849cfebc0227b068c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf889367e458ed4ba71c87e2e263acfb56a1399a4bdb0bde55cc26fab7f237a67e0af8f3a5026972bf869f37e87c9dfef753cfbd9bffa6872f3e6e074c8c630
|
7
|
+
data.tar.gz: c3e14f375de48a3260680376c23c1622c75bfa0e4ac78639a398a53b727d4a2d5a45d1fdeb3252700c184b3cbbe6e8c92298e5a125646543e27430aad3a32c68
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
N�۠ʂQQ�W��\q`��Ӂ`�l �*�{�θ�P�������R9?�#�ウsk������6J
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![Build Status](https://img.shields.io/travis/vancluever/aws-runas.svg)](https://travis-ci.org/vancluever/aws-runas)
|
2
|
+
[![Gem Version](https://img.shields.io/gem/v/aws_runas.svg)](https://rubygems.org/gems/aws_runas)
|
3
|
+
[![Codecov](https://img.shields.io/codecov/c/github/vancluever/aws-runas.svg)](https://codecov.io/github/vancluever/aws-runas)
|
4
|
+
|
1
5
|
aws-runas
|
2
6
|
==========
|
3
7
|
|
data/aws_runas.gemspec
CHANGED
@@ -35,13 +35,14 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.cert_chain = ['certs/vancluever.pem']
|
36
36
|
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
|
37
37
|
|
38
|
-
spec.required_ruby_version = ['>= 2.1
|
38
|
+
spec.required_ruby_version = ['>= 2.1']
|
39
39
|
|
40
|
-
spec.add_dependency 'aws-sdk', '~> 2.2
|
41
|
-
spec.add_dependency 'inifile', '~> 3.0
|
42
|
-
spec.add_dependency 'trollop', '~> 2.1
|
40
|
+
spec.add_dependency 'aws-sdk', '~> 2.2'
|
41
|
+
spec.add_dependency 'inifile', '~> 3.0'
|
42
|
+
spec.add_dependency 'trollop', '~> 2.1'
|
43
43
|
|
44
|
-
spec.add_development_dependency 'rake', '~> 10.4
|
45
|
-
spec.add_development_dependency 'rspec', '~> 3.4
|
46
|
-
spec.add_development_dependency 'simplecov', '~> 0.10
|
44
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
45
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
46
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
47
|
+
spec.add_development_dependency 'codecov', '~> 0.1'
|
47
48
|
end
|
data/lib/aws_runas/config.rb
CHANGED
data/lib/aws_runas/version.rb
CHANGED
@@ -43,6 +43,12 @@ describe AwsRunAs::Config do
|
|
43
43
|
expect(@cfg.load_config_value(key: 'region')).to eq('us-east-1')
|
44
44
|
end
|
45
45
|
end
|
46
|
+
|
47
|
+
describe '#load_source_profile' do
|
48
|
+
it 'returns the default profile when no source profile is present' do
|
49
|
+
expect(@cfg.load_source_profile).to eq('default')
|
50
|
+
end
|
51
|
+
end
|
46
52
|
end
|
47
53
|
|
48
54
|
context 'with profile set to test-profile' do
|
@@ -71,7 +77,7 @@ describe AwsRunAs::Config do
|
|
71
77
|
|
72
78
|
describe '#load_source_profile' do
|
73
79
|
it 'loads the source credentials profile for the the non-default profile' do
|
74
|
-
expect(@cfg.load_source_profile).to eq('
|
80
|
+
expect(@cfg.load_source_profile).to eq('test-credentials')
|
75
81
|
end
|
76
82
|
end
|
77
83
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -13,10 +13,14 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
require 'simplecov'
|
16
|
+
require 'codecov'
|
16
17
|
SimpleCov.start do
|
17
18
|
add_filter '/vendor/'
|
19
|
+
add_filter '/spec/'
|
18
20
|
end
|
19
21
|
|
22
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov if ENV['CI'] == 'true'
|
23
|
+
|
20
24
|
require 'aws-sdk'
|
21
25
|
|
22
26
|
RSpec.configure do |config|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_runas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Marchesi
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
reriQxVYXGlD8ZDuaKlDyVqUbF026ZHIlHKIgg90O037qFPxCBACTtxtYTP2hwug
|
32
32
|
Yis=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-11-
|
34
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: aws-sdk
|
@@ -39,84 +39,98 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.2
|
42
|
+
version: '2.2'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.2
|
49
|
+
version: '2.2'
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: inifile
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.0
|
56
|
+
version: '3.0'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 3.0
|
63
|
+
version: '3.0'
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: trollop
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 2.1
|
70
|
+
version: '2.1'
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.1
|
77
|
+
version: '2.1'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: rake
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 10.4
|
84
|
+
version: '10.4'
|
85
85
|
type: :development
|
86
86
|
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 10.4
|
91
|
+
version: '10.4'
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: rspec
|
94
94
|
requirement: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 3.4
|
98
|
+
version: '3.4'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 3.4
|
105
|
+
version: '3.4'
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
name: simplecov
|
108
108
|
requirement: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.10
|
112
|
+
version: '0.10'
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.10
|
119
|
+
version: '0.10'
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: codecov
|
122
|
+
requirement: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0.1'
|
127
|
+
type: :development
|
128
|
+
prerelease: false
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0.1'
|
120
134
|
description: Run a command or shell under an assumed AWS IAM role
|
121
135
|
email:
|
122
136
|
- chrism@vancluevertech.com
|
@@ -128,6 +142,7 @@ files:
|
|
128
142
|
- ".gitignore"
|
129
143
|
- ".rubocop.yml"
|
130
144
|
- ".travis.yml"
|
145
|
+
- CHANGELOG.md
|
131
146
|
- Gemfile
|
132
147
|
- LICENSE
|
133
148
|
- README.md
|
@@ -158,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
173
|
requirements:
|
159
174
|
- - ">="
|
160
175
|
- !ruby/object:Gem::Version
|
161
|
-
version: 2.1
|
176
|
+
version: '2.1'
|
162
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
178
|
requirements:
|
164
179
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|