capistrano-db-sync 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -2
- data/capistrano-db-sync.gemspec +1 -1
- data/lib/capistrano/tasks/db.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a795956c9a560caa468f69525d691341dd4f672
|
4
|
+
data.tar.gz: 62c6af9bba2a68319e468af30f10da95a6965421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 895f9357d7d3729d97428ec98e35f47a1d0bcee45721b5a72dd4b7823fc38e8fa143a08aa1eadb4a4ae8a400f1b594caa26f89f793df66257a3f749a3ad3ebdc
|
7
|
+
data.tar.gz: 3c98422b7f183422df21f346193742a3441c608d5858b9795b08be0fcb724f0f20a090560abed79977c9821dbca14e9a2abfb2fe825487a024f0a07ed325b39a
|
data/README.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# capistrano-db-sync
|
2
2
|
|
3
|
+
## Prerequisites
|
4
|
+
Install Ruby and Capistrano
|
5
|
+
|
6
|
+
### Download and install Ruby
|
7
|
+
Download and install Ruby for windows with the RubyInstaller available at [RubyInstaller](https://rubyinstaller.org)
|
8
|
+
|
9
|
+
### Install Capistrano
|
10
|
+
The following command will install the latest released Capistrano :
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem install capistrano
|
14
|
+
```
|
15
|
+
|
3
16
|
## Install
|
4
17
|
|
5
18
|
Download and install the gem :
|
@@ -16,7 +29,12 @@ require 'capistrano/db-sync'
|
|
16
29
|
|
17
30
|
## Available tasks
|
18
31
|
```
|
19
|
-
db:sync:
|
20
|
-
db:sync:
|
32
|
+
db:sync:remote_to_local # Synchronize your local database using remote database
|
33
|
+
db:sync:local_to_remote # Synchronize your remote database using local database
|
21
34
|
```
|
22
35
|
|
36
|
+
## Example
|
37
|
+
|
38
|
+
```
|
39
|
+
cap production db:sync:remote_to_local
|
40
|
+
```
|
data/capistrano-db-sync.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-db-sync'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.14'
|
8
8
|
spec.date = Date.today.to_s
|
9
9
|
spec.summary = "Capistrano synchronization databases task"
|
10
10
|
spec.description = "Capistrano synchronization task for syncing databases between the local development environment and different multi_stage environments"
|
@@ -40,7 +40,7 @@ namespace :db do
|
|
40
40
|
Retrieves a remote database from the selected stage environment to the local development
|
41
41
|
environment. The database credentials will be read from your local config/database.yml file.
|
42
42
|
DESC
|
43
|
-
task :
|
43
|
+
task :remote_to_local do
|
44
44
|
on roles(:all) do
|
45
45
|
# Backup de la base donnée distante
|
46
46
|
|