gantree 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gantree/docker.rb +10 -2
- data/lib/gantree/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: f2ae59a84ba4cc1cbf6268302812a9f0967d5ab0
|
4
|
+
data.tar.gz: 7a2eaf75e5402e6359d7139840eddf2dfde682f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8603d40c915d2a0c5b8f6a5be9a5c417a9410d462b95b0c5a3f8a007263d5c48705eecaa274468e864e573e613c2258b13df32769949d21f190e7bbb1889684c
|
7
|
+
data.tar.gz: 6b4161e9c89dfe8e1368f4969a89cf94c3792045b9d741c6e27192717f5feefa5ca98979b3674c0a3584e903ca6e38d51da3e5c6f5592a1b016bc1f6545fea6a
|
data/lib/gantree/docker.rb
CHANGED
@@ -7,11 +7,19 @@ module Gantree
|
|
7
7
|
check_credentials
|
8
8
|
set_aws_keys
|
9
9
|
@options = options
|
10
|
-
@image_path = @options[:image_path]
|
11
|
-
|
10
|
+
@image_path = @options[:image_path]
|
11
|
+
@image_path||= get_image_path
|
12
12
|
@tag = @options[:tag] ||= tag
|
13
13
|
@base_image_tag = @options[:base_image_tag]
|
14
14
|
end
|
15
|
+
|
16
|
+
def get_image_path
|
17
|
+
dockerrun = JSON.parse(IO.read("Dockerrun.aws.json"))
|
18
|
+
image = dockerrun["Image"]["Name"]
|
19
|
+
image.gsub!(/:(.*)$/, "") if image.include? ":"
|
20
|
+
puts "Image Path: #{image}".light_blue
|
21
|
+
image
|
22
|
+
end
|
15
23
|
|
16
24
|
def pull
|
17
25
|
puts "Pulling Image First..."
|
data/lib/gantree/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gantree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|