rake_docker 0.7.3 → 0.7.4

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
  SHA1:
3
- metadata.gz: e50e8992d39bc8d57dda5a8095deb82e342089c5
4
- data.tar.gz: 5328aaf4d2644b8a35ddb89b5c8c829c64d95d63
3
+ metadata.gz: 24c33eb2589eb236929fe3964edc3319bf8bac1e
4
+ data.tar.gz: 8b3bb93856370edf77ef77113f3c7b3f95cd0e10
5
5
  SHA512:
6
- metadata.gz: c517dcb9d81648f539fbf49f41c72aabe148541fcd047f837bd5a111053c2568417fe757d69784b4998133b51b6d3897baa2599e88013032aec820b3b424fcbf
7
- data.tar.gz: 2d5a1a671d8310e60a785af3f2f06c26e039554e6f4dda4fd27b4e2f3d68b8ef6ba704d4f59142bff6eb4c64b68139b249169f14e531e5ac8f25975f26c995d1
6
+ metadata.gz: 1c5ff4663e7c0bcc1a742fd8fd82a254b59037804dc2879c29c94d250145bb1e70328e75a806e65820b241bd9c520e6053b0182572ae5ab35611dedfb1ba0363
7
+ data.tar.gz: 76308ae6295dd5bd3b7d225849f7c7b055116867f98bcb81a79e9814e9111c50f45593d71949ca27bc16dcca7096d25c26e089387fedc739e8d23ddb56430d67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (0.7.3)
4
+ rake_docker (0.7.4)
5
5
  aws-sdk (~> 2.10)
6
6
  docker-api (~> 1.33)
7
7
 
@@ -5,16 +5,12 @@ module RakeDocker
5
5
  module Authentication
6
6
  class ECR
7
7
  def initialize &block
8
- config = OpenStruct.new(
8
+ @config = OpenStruct.new(
9
9
  region: nil,
10
10
  registry_id: nil)
11
- block.call(config)
11
+ block.call(@config)
12
12
 
13
- @ecr_client = Aws::ECR::Client.new(region: config.region)
14
-
15
- @registry_id = config.registry_id.respond_to?(:call) ?
16
- config.registry_id.call :
17
- config.registry_id
13
+ @ecr_client = Aws::ECR::Client.new(region: @config.region)
18
14
  end
19
15
 
20
16
  def arity
@@ -22,8 +18,12 @@ module RakeDocker
22
18
  end
23
19
 
24
20
  def call
21
+ registry_id = @config.registry_id.respond_to?(:call) ?
22
+ @config.registry_id.call :
23
+ @config.registry_id
24
+
25
25
  token_response = @ecr_client.get_authorization_token(
26
- registry_ids: [@registry_id])
26
+ registry_ids: [registry_id])
27
27
  token_data = token_response.authorization_data[0]
28
28
  proxy_endpoint = token_data.proxy_endpoint
29
29
  email = 'none'
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-09 00:00:00.000000000 Z
11
+ date: 2017-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api