heroku_rake_tasks 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/heroku_rake_tasks/version.rb +1 -1
- data/lib/tasks/heroku.rake +10 -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: 4fb6d2967319776c1f3f958c9035901fe863536c
|
4
|
+
data.tar.gz: 52fc776b7e4d5c901cef939d04df25ea8d7d3a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34de83501ebc2738862df7ec2c690811acf9dfe7201cf5e114a6434933365c53f9486486bc907984dc1c7ff5c1e8c25bbbea1bb56888a9f6fddf95a30bbe4b8e
|
7
|
+
data.tar.gz: c1df970bc1c88d6db5452cf52520171cd9377a3686b8714c765499d5dce9a18dbf63adaec567854fa26a20e4083bce31aa2252dcd52351ef9b8b64567ab2b2ba
|
data/lib/tasks/heroku.rake
CHANGED
@@ -114,7 +114,16 @@ namespace :h do
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def capture
|
117
|
-
bundlerize
|
117
|
+
bundlerize do
|
118
|
+
sh "heroku pgbackups:capture -r #{remote}" do |ok, res|
|
119
|
+
unless ok
|
120
|
+
sh "heroku pgbackups -r #{remote}"
|
121
|
+
puts "Enter the backup id you want to delete :"
|
122
|
+
backup_id = $stdin.gets
|
123
|
+
sh "heroku pgbackups:destroy #{backup_id.strip} -r #{remote}"
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
118
127
|
end
|
119
128
|
|
120
129
|
def download
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Colon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|