aws-session-credentials 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf8adc8d0f24b82f7d1aece5ea9bc3540abe8037a6356967242045c023df3220
4
- data.tar.gz: f4ae28f816b10222dd9d5cb85c06ef8289c4c38832e63ce0096e860b5745950c
3
+ metadata.gz: c149de58535378c9f9081901e21e21dda9b823aee1db9ef0cb4d859a684ad6fb
4
+ data.tar.gz: c3a07541c9ef144b4cb803eef4113cff5b8522105ce68bb6020c6ead91726430
5
5
  SHA512:
6
- metadata.gz: dda1add1dd900c86e9f0bea0a86f7b62b40ecd9850811a274f87ef8f00ef06306b17142107b62872ab04a9262ca0a8c497d45fcd66842bd04660e878e942fda2
7
- data.tar.gz: 0223408cdda6238ccc2e81dd031c9afba574730745e13604cb050c729afeb9180b06700dc3aa28fdd53cae03c2c9d4e16cf95a6060163935389068595fb957ad
6
+ metadata.gz: 85480818524ab1f5188558776afe2dcf4e60d44b72ca2a4595904dc4442eab60ceec42ad0af4edc12d5f2322caef10052990b949a1e32e4da81ab4ab4354b80f
7
+ data.tar.gz: 539cb044640f7ad259071a3903d1883efea7ca850a4bd111c2563f2df7858ff1ff9498e9aefb838ea13f85ebee8a660e87b8bdc54c681fe0f5d5cb6bcc7722de
@@ -0,0 +1,17 @@
1
+ FROM ruby:2.4.3-alpine as builder
2
+
3
+ RUN apk add --no-cache build-base ruby-dev git
4
+
5
+ RUN gem install aws-session-credentials
6
+
7
+ RUN rm -rf /usr/local/bundle/cache && \
8
+ find /usr/local/bundle/gems/ -name "*.c" -delete && \
9
+ find /usr/local/bundle/gems/ -name "*.o" -delete
10
+
11
+ FROM ruby:2.4.3-alpine
12
+
13
+ COPY --from=builder /usr/local/bundle /usr/local/bundle
14
+
15
+ RUN apk add --no-cache pcsc-lite-libs
16
+
17
+ ENTRYPOINT ["aws-session"]
@@ -308,9 +308,15 @@ module Aws
308
308
  export AWS_ACCESS_KEY_ID="#{prof.aws_access_key_id}"
309
309
  export AWS_SECRET_ACCESS_KEY="#{prof.aws_secret_access_key}"
310
310
  export AWS_SESSION_TOKEN="#{prof.aws_session_token}"
311
+ EOF
312
+ when 'powershell'
313
+ puts <<-EOF
314
+ $Env:AWS_ACCESS_KEY_ID = "#{prof.aws_access_key_id}"
315
+ $Env:AWS_SECRET_ACCESS_KEY = "#{prof.aws_secret_access_key}"
316
+ $Env:AWS_SESSION_TOKEN = "#{prof.aws_session_token}"
311
317
  EOF
312
318
  when ''
313
- raise "Please specify a shell. Currently supported shells are: bash"
319
+ raise "Please specify a shell. Currently supported shells are: bash and powershell"
314
320
  else
315
321
  raise "Unsupported shell '#{shell_name}'"
316
322
  end
@@ -1,7 +1,7 @@
1
1
  module Aws
2
2
  module Session
3
3
  module Credentials
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-session-credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Vidulich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -204,6 +204,7 @@ files:
204
204
  - ".rspec"
205
205
  - ".travis.yml"
206
206
  - CODE_OF_CONDUCT.md
207
+ - Dockerfile
207
208
  - Gemfile
208
209
  - Guardfile
209
210
  - LICENSE.txt
@@ -249,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
250
  version: '0'
250
251
  requirements: []
251
252
  rubyforge_project:
252
- rubygems_version: 2.7.4
253
+ rubygems_version: 2.7.6
253
254
  signing_key:
254
255
  specification_version: 4
255
256
  summary: Command-line tool to generate AWS session credentials.