heroku_rake_tasks 0.1.3 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b266f3d5b70014044ca8d447ae8cc52c087571f5
4
- data.tar.gz: cf59250fd9fc168edbc4d66ca62e82ab308cd931
3
+ metadata.gz: 4fb6d2967319776c1f3f958c9035901fe863536c
4
+ data.tar.gz: 52fc776b7e4d5c901cef939d04df25ea8d7d3a49
5
5
  SHA512:
6
- metadata.gz: d2130cfe414213d599d3b1bced2994ce32193a249b2a4f3aa4f42abca5eac00c0fc2a21500898c2b42669b65766fa0e9d9d2dd3b51071740224003ec13907769
7
- data.tar.gz: a98e46b78a2eca1fb7c0ee0857ac71993327fa51934d4ae522764289aec470592161bc401be8e40aa2b7be301b2fd75a1ba3a9db2f354ca44ab71c853d6efa5a
6
+ metadata.gz: 34de83501ebc2738862df7ec2c690811acf9dfe7201cf5e114a6434933365c53f9486486bc907984dc1c7ff5c1e8c25bbbea1bb56888a9f6fddf95a30bbe4b8e
7
+ data.tar.gz: c1df970bc1c88d6db5452cf52520171cd9377a3686b8714c765499d5dce9a18dbf63adaec567854fa26a20e4083bce31aa2252dcd52351ef9b8b64567ab2b2ba
@@ -1,3 +1,3 @@
1
1
  module HerokuRakeTasks
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -114,7 +114,16 @@ namespace :h do
114
114
  end
115
115
 
116
116
  def capture
117
- bundlerize { sh "heroku pgbackups:capture -r #{remote}" }
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.3
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-08-21 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler