rake_docker 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_docker/authentication/ecr.rb +8 -8
- data/lib/rake_docker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24c33eb2589eb236929fe3964edc3319bf8bac1e
|
4
|
+
data.tar.gz: 8b3bb93856370edf77ef77113f3c7b3f95cd0e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c5ff4663e7c0bcc1a742fd8fd82a254b59037804dc2879c29c94d250145bb1e70328e75a806e65820b241bd9c520e6053b0182572ae5ab35611dedfb1ba0363
|
7
|
+
data.tar.gz: 76308ae6295dd5bd3b7d225849f7c7b055116867f98bcb81a79e9814e9111c50f45593d71949ca27bc16dcca7096d25c26e089387fedc739e8d23ddb56430d67
|
data/Gemfile.lock
CHANGED
@@ -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: [
|
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'
|
data/lib/rake_docker/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|