heroku_rake_tasks 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48739ccccf9c712b49066f3dc2c84ec004e6d53b
4
- data.tar.gz: c649c4d431c4a10819a3221f4357da3322e47f60
3
+ metadata.gz: b266f3d5b70014044ca8d447ae8cc52c087571f5
4
+ data.tar.gz: cf59250fd9fc168edbc4d66ca62e82ab308cd931
5
5
  SHA512:
6
- metadata.gz: 19452c6370083b6881ddd8d51f17c20cc6de718bd3b9ecd611e82ef16c9c3692495c82e210a9417aa3719bc97197e179f3dd1ef3660971fb638bf94c6be179d9
7
- data.tar.gz: e3751630b1f547d77561bb8e1b2a5165eca99b119f2dc58d3301017ac3a60115e4e6f228ee93b2e293100475785965d0f42fa53e77bb8a148a0322f929d79f42
6
+ metadata.gz: d2130cfe414213d599d3b1bced2994ce32193a249b2a4f3aa4f42abca5eac00c0fc2a21500898c2b42669b65766fa0e9d9d2dd3b51071740224003ec13907769
7
+ data.tar.gz: a98e46b78a2eca1fb7c0ee0857ac71993327fa51934d4ae522764289aec470592161bc401be8e40aa2b7be301b2fd75a1ba3a9db2f354ca44ab71c853d6efa5a
data/README.md CHANGED
@@ -29,9 +29,10 @@ Or install it yourself as:
29
29
  ```bash
30
30
  rake h:config # Display the application env vars
31
31
  rake h:console # Start a Rails console
32
- rake h:db:dump # Dump the remote database to ./remote.dump
32
+ rake h:db:dump # Dump the remote database and download it to ./remote.dump
33
+ rake h:db:get # Download the latest remote database capture to ./remote.dump
33
34
  rake h:db:restore # Restore the local database from ./remote.dump
34
- rake h:db:sync # Sync the remote database to the local one
35
+ rake h:db:sync # Sync the remote database with the local one
35
36
  rake h:dbconsole # Start a DB console
36
37
  rake h:deploy # Deploy the application
37
38
  rake h:deploy:commits # Show the deployment-pending commits log
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ben Colon"]
10
10
  spec.email = ["ben@colon.com.fr"]
11
11
  spec.summary = %q{Rake tasks to manage an Heroku Application}
12
- spec.description = %q{Rake tasks to manage an Heroku Application}
13
- spec.homepage = ""
12
+ spec.description = %q{Rake tasks to manage an Heroku Application (Deploy tasks, DB tasks, ...)}
13
+ spec.homepage = "https://github.com/bencolon/heroku_rake_tasks"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -1,3 +1,3 @@
1
1
  module HerokuRakeTasks
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -41,19 +41,26 @@ namespace :h do
41
41
  namespace :db do
42
42
  desc 'Sync the remote database with the local one'
43
43
  task :sync do
44
- dump
44
+ capture
45
+ download
45
46
  restore
46
47
  end
47
48
 
48
- desc 'Dump the remote database to ./remote.dump'
49
+ desc 'Dump the remote database and download it to ./remote.dump'
49
50
  task :dump do
50
- dump
51
+ capture
52
+ download
51
53
  end
52
54
 
53
55
  desc 'Restore the local database from ./remote.dump'
54
56
  task :restore do
55
57
  restore
56
58
  end
59
+
60
+ desc 'Download the latest remote database capture to ./remote.dump'
61
+ task :get do
62
+ download
63
+ end
57
64
  end
58
65
 
59
66
  desc 'Restart the application'
@@ -106,8 +113,11 @@ namespace :h do
106
113
  end
107
114
  end
108
115
 
109
- def dump
116
+ def capture
110
117
  bundlerize { sh "heroku pgbackups:capture -r #{remote}" }
118
+ end
119
+
120
+ def download
111
121
  bundlerize { sh "curl -o remote.dump $(heroku pgbackups:url -r #{remote})" }
112
122
  end
113
123
 
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.2
4
+ version: 0.1.3
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-19 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Rake tasks to manage an Heroku Application
41
+ description: Rake tasks to manage an Heroku Application (Deploy tasks, DB tasks, ...)
42
42
  email:
43
43
  - ben@colon.com.fr
44
44
  executables: []
@@ -54,7 +54,7 @@ files:
54
54
  - lib/heroku_rake_tasks.rb
55
55
  - lib/heroku_rake_tasks/version.rb
56
56
  - lib/tasks/heroku.rake
57
- homepage: ''
57
+ homepage: https://github.com/bencolon/heroku_rake_tasks
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}