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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e8ef70e0e387c03490710454ebe6ba2888e6c01
4
- data.tar.gz: 2f4bf40b957c717f2246f4a637e812c2747c2758
3
+ metadata.gz: f2ae59a84ba4cc1cbf6268302812a9f0967d5ab0
4
+ data.tar.gz: 7a2eaf75e5402e6359d7139840eddf2dfde682f9
5
5
  SHA512:
6
- metadata.gz: a12d134fcc41ac0897ce784b7b2fe842f81825d6f794ace21aeae9538f10b05646d86d8afff7d5c47f14b3abeacab19ca6b7c10a85958343a8288f9a66023ad2
7
- data.tar.gz: cbc395a93327e565a9558ac5d80e608b919363662ce6a6cf9470f91ec5af0f481dfad0d3cb50c0e9d28a8719848202c7ee9cfafb9875ec767fa5740e6e52cd1d
6
+ metadata.gz: 8603d40c915d2a0c5b8f6a5be9a5c417a9410d462b95b0c5a3f8a007263d5c48705eecaa274468e864e573e613c2258b13df32769949d21f190e7bbb1889684c
7
+ data.tar.gz: 6b4161e9c89dfe8e1368f4969a89cf94c3792045b9d741c6e27192717f5feefa5ca98979b3674c0a3584e903ca6e38d51da3e5c6f5592a1b016bc1f6545fea6a
@@ -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
- raise "Please provide an image path name in .gantreecfg ex. { 'image_path' : 'bleacher/cms' }" unless @image_path
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..."
@@ -1,3 +1,3 @@
1
1
  module Gantree
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor