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 +4 -0
- data/lib/heroku_san/tasks.rb +1 -9
- data/lib/heroku_san/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/lib/heroku_san/tasks.rb
CHANGED
@@ -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
|
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
|
data/lib/heroku_san/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 3.0.
|
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-
|
20
|
+
date: 2012-06-18 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|