gantree 0.5.7 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gantree/base.rb +6 -4
- data/lib/gantree/cli.rb +3 -1
- data/lib/gantree/deploy.rb +2 -1
- data/lib/gantree/docker.rb +1 -1
- 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: bfcac397cfe4eb3cf5133794b3c24c555faf49e9
|
4
|
+
data.tar.gz: fec596a0fd549ac77104c49dc399afeabf31de7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 690bae1b943a094c9d4d7f4eddcacf56b60478826a9079c238426e84dd635d91fbeeea93ea01c7fd16102d17994db91844ff5b3a66ccbc213c5425f4c5067c60
|
7
|
+
data.tar.gz: 7645669b53bf279dea4d30baf419ddbbb399baa985bb99adfe1c56dafc30d666ade307d92e738d50ba80943ed6cf9e684ba6c8e42b4516cd1be8b6d35c1fb71d
|
data/lib/gantree/base.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require "colorize"
|
2
2
|
require 'librato/metrics'
|
3
|
+
require 'bigdecimal'
|
4
|
+
require 'bigdecimal/util'
|
3
5
|
module Gantree
|
4
6
|
class Base
|
5
7
|
def check_credentials
|
@@ -11,12 +13,12 @@ module Gantree
|
|
11
13
|
puts opts.inspect
|
12
14
|
enabled = opts[:auto_updates]
|
13
15
|
#return if $0.include? "bin/gantree"
|
14
|
-
latest_version = `gem search gantree | grep gantree | awk '{ print $2 }' | tr -d '()'`.strip
|
15
|
-
current_version = VERSION
|
16
|
+
latest_version = `gem search gantree | grep gantree | awk '{ print $2 }' | tr -d '()'`.strip
|
17
|
+
current_version = VERSION
|
16
18
|
puts "Auto updates enabled".light_blue if enabled
|
17
19
|
puts "Auto updates disabled".light_blue if !enabled
|
18
|
-
|
19
|
-
|
20
|
+
puts "Updating from #{current_version} to #{latest_version}...".green
|
21
|
+
if current_version == latest_version && enabled
|
20
22
|
system("gem update gantree --force")
|
21
23
|
else
|
22
24
|
puts "gem already up to date".light_blue
|
data/lib/gantree/cli.rb
CHANGED
@@ -71,7 +71,9 @@ module Gantree
|
|
71
71
|
option :image_path, :aliases => "-i", :desc => "docker hub image path ex. (bleacher/cms | quay.io/bleacherreport/cms)"
|
72
72
|
option :tag, :aliases => "-t", :desc => "set docker tag to build"
|
73
73
|
def build
|
74
|
-
Gantree::Docker.new(merge_defaults(options))
|
74
|
+
docker = Gantree::Docker.new(merge_defaults(options))
|
75
|
+
docker.pull
|
76
|
+
docker.build
|
75
77
|
end
|
76
78
|
|
77
79
|
desc "push", "build and tag a docker application"
|
data/lib/gantree/deploy.rb
CHANGED
@@ -78,7 +78,7 @@ module Gantree
|
|
78
78
|
Librato::Metrics.annotate :deploys, "deploys",:source => "#{@app}", :start_time => Time.now.to_i
|
79
79
|
puts "Librato metric submitted"
|
80
80
|
end
|
81
|
-
if @options[:release_notes_wiki] && prod_deploy?
|
81
|
+
if @options[:release_notes_wiki] == "enabled" && prod_deploy? && @app.include?("-app-")
|
82
82
|
ReleaseNotes.new(@options[:release_notes_wiki], @app, new_hash).create
|
83
83
|
`git tag #{tag}`
|
84
84
|
`git push --tags`
|
@@ -129,6 +129,7 @@ module Gantree
|
|
129
129
|
|
130
130
|
def check_eb_bucket
|
131
131
|
bucket = set_bucket
|
132
|
+
puts "S3 Bucket: #{bucket}".light_blue
|
132
133
|
s3.buckets.create(bucket) unless s3.buckets[bucket].exists?
|
133
134
|
end
|
134
135
|
|
data/lib/gantree/docker.rb
CHANGED
@@ -16,7 +16,7 @@ module Gantree
|
|
16
16
|
def pull
|
17
17
|
puts "Pulling Image First..."
|
18
18
|
if @base_image_tag
|
19
|
-
puts "Pulled Image: #{@image_path}:#{@base_image_tag}".green if system("docker pull #{
|
19
|
+
puts "Pulled Image: #{@image_path}:#{@base_image_tag}".green if system("docker pull #{@image_path}:#{@base_image_tag}")
|
20
20
|
elsif system("docker pull #{@image_path}")
|
21
21
|
puts "Pulled Image: #{@image_path}".green
|
22
22
|
else
|
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.5.
|
4
|
+
version: 0.5.9
|
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-
|
11
|
+
date: 2015-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|