heroku_deployer 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/amitree/heroku_client.rb +5 -4
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca80a1ff35f65b68c88129a91a3a5ad713b989cd
4
- data.tar.gz: 6caee6edeacf7dfdae7af6cf3a4946049cf37ba0
3
+ metadata.gz: 4a2c55e980f08f9bcc0b41a4d9f5e60b263ff50f
4
+ data.tar.gz: 2747881515b2bf19dd97da87196c1cadf340e477
5
5
  SHA512:
6
- metadata.gz: 780d0448cb84b5815dc3988c2fab954d7f230862127f7cbfdafe7aa5577ed98d68aba019d1ab0425c95fe2e4ab6d2cdccfd4c16ae7e4a37a7af916f068963097
7
- data.tar.gz: b93dc709193019fcd293dbc1387f615a6b81c4165d4e8b3ba68bb1f1e53b35a150bde283f64927d81735bb13101041948fb90c7e2e24f5c89c2fb0255a2c6850
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
- heroku_run @production_app_name, 'rake db:migrate db:seed'
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.2
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-07-14 00:00:00.000000000 Z
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