heroku_deployer 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amitree/heroku_client.rb +5 -4
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2c55e980f08f9bcc0b41a4d9f5e60b263ff50f
|
4
|
+
data.tar.gz: 2747881515b2bf19dd97da87196c1cadf340e477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb84423805106808cc39c5fd132957b1e86288f7892515fa975ae02ef80473e28c934b773ce76beae68cebc9d14875604009b87134fba0090ae0042a9790b7db
|
7
|
+
data.tar.gz: eed0db2d645213f641dbf10547e5c9bcc7319b98c1e6ebc9321f12a0b220c042b5eb1965b8146cb95caccc098ba40274e255f7946b41bdfb32fc6694f864db2e
|
@@ -52,7 +52,7 @@ module Amitree
|
|
52
52
|
puts "Deploying slug to production: #{slug}"
|
53
53
|
unless options[:dry_run]
|
54
54
|
@heroku_new.post_release(@production_app_name, {'slug' => slug, 'description' => "Promote #{@staging_app_name} #{staging_release_name}"})
|
55
|
-
db_migrate_on_production
|
55
|
+
db_migrate_on_production(options)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -64,12 +64,13 @@ module Amitree
|
|
64
64
|
result.body['slug']['id'] || raise(Error.new("Could not find slug in API response: #{result.inspect}"))
|
65
65
|
end
|
66
66
|
|
67
|
-
def db_migrate_on_production(attempts=0)
|
67
|
+
def db_migrate_on_production(options={}, attempts=0)
|
68
68
|
begin
|
69
|
-
|
69
|
+
tasks = %w(db:migrate db:seed) + Array(options[:rake])
|
70
|
+
heroku_run @production_app_name, "rake #{tasks.join(' ')}"
|
70
71
|
rescue => e
|
71
72
|
if attempts < 2
|
72
|
-
db_migrate_on_production(attempts+1)
|
73
|
+
db_migrate_on_production(options, attempts+1)
|
73
74
|
raise PostDeploymentError if attempts == 0
|
74
75
|
else
|
75
76
|
raise e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Wargnier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.0.2
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: pivotal-tracker
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.5.12
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.5.12
|
70
84
|
description: Gem that handles automatic deployment of code to Heroku, integrating
|
71
85
|
with Pivotal Tracker and Git
|
72
86
|
email: engineering@amitree.com
|