heroku_rake_tasks 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/heroku_rake_tasks.gemspec +2 -2
- data/lib/heroku_rake_tasks/version.rb +1 -1
- data/lib/tasks/heroku.rake +14 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b266f3d5b70014044ca8d447ae8cc52c087571f5
|
4
|
+
data.tar.gz: cf59250fd9fc168edbc4d66ca62e82ab308cd931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/heroku_rake_tasks.gemspec
CHANGED
@@ -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")
|
data/lib/tasks/heroku.rake
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
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.
|
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-
|
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: {}
|