heroku_san 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log (curated)
2
2
 
3
+ ## v3.0.3
4
+
5
+ * Use Heroku's db:pull instead of PGBackups
6
+
3
7
  ## v3.0.2
4
8
 
5
9
  * Fix config:list bug (#90)
@@ -296,15 +296,7 @@ namespace :heroku do
296
296
  desc "Pull database from stage to local dev database"
297
297
  task :pull do
298
298
  each_heroku_app do |stage|
299
- sh "heroku pgbackups:capture --expire --app #{stage.app}"
300
- dump = `heroku pgbackups --app #{stage.app}`.split("\n").last.split(" ").first
301
- sh "mkdir -p #{Rails.root}/db/dumps"
302
- file = "#{Rails.root}/db/dumps/#{dump}.sql.gz"
303
- url = `heroku pgbackups:url --app #{stage.app} #{dump}`.chomp
304
- sh "wget", url, "-O", file
305
- sh "rake db:drop db:create"
306
- sh "gunzip -c #{file} | #{Rails.root}/script/dbconsole"
307
- sh "rake jobs:clear"
299
+ sh "heroku db:pull --app #{stage.app} --confirm #{stage.app}"
308
300
  end
309
301
  end
310
302
  end
@@ -1,3 +1,3 @@
1
1
  module HerokuSan
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 2
9
- version: 3.0.2
8
+ - 3
9
+ version: 3.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Elijah Miller
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-06-04 00:00:00 -07:00
20
+ date: 2012-06-18 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency