pinject 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pinject/docker.rb +6 -0
- data/lib/pinject/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b9e9f711a85a5ed50b33b9c493c96331ba3ffeaa0df0a44ef488514f753ca2d
|
4
|
+
data.tar.gz: 2f6a58a3d500f26aead0cd1a499929a6175389f4990a6b157dbbdf98441a1afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f011748ced9a35caf7a704a69c36b06ec5e8a1c06626e565980daed4bad8d5ec2506c6cb865dcc0fe86a73cad9484c6ae4a915fe32930faeb56f7214b3759b
|
7
|
+
data.tar.gz: 18fc8bdde9eeaa4eb618b5b244bb7de20da92886d13459bb0806e5318dcefe04a1105cf026bd2d516baaf43ab531bd78e5fc0b37f0744b4c21e4f16a2b4126a3
|
data/Gemfile.lock
CHANGED
data/lib/pinject/docker.rb
CHANGED
@@ -7,6 +7,12 @@ module Pinject
|
|
7
7
|
class Docker
|
8
8
|
attr_reader :log
|
9
9
|
|
10
|
+
::Docker.authenticate!(
|
11
|
+
'username' => ENV['DOCKER_USER'],
|
12
|
+
'password' => ENV['DOCKER_PASSWORD'],
|
13
|
+
'serveraddress' => ENV['DOCKER_REGISTRY']
|
14
|
+
) if %w(DOCKER_USER DOCKER_PASSWORD DOCKER_REGISTRY).all? {|a| ENV[a] }
|
15
|
+
|
10
16
|
def initialize(image_name, log: false)
|
11
17
|
@image_name = image_name
|
12
18
|
@log = log
|
data/lib/pinject/version.rb
CHANGED