capistrano-mysql_tables 0.0.1 → 0.0.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 +4 -4
- data/README.md +21 -12
- data/capistrano-mysql_tables.gemspec +1 -1
- data/lib/capistrano/tasks/mysql_tables.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26150aeda2cf743b14013afb8888a7e1a882f4e9454cc53d42fb4363b72fc754
|
4
|
+
data.tar.gz: 1288ae5fa98dc53700f3b02875c544e72b5cf74953aba8db611c2423721a220b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a5bf4c420b695497da702000cec38ec89e706cebbc714f817ef7e972c4b3b653d3afcb97a52564e9b0669781c670e6e537baa5379d1c2d7bbaf61b72daa42ad
|
7
|
+
data.tar.gz: 94bd85d069c8f49a6b8a6d94516a629c173ae3569abbef9d8613f4bf4186ca0375c6cdf0087849c37cab354771e0ae097bc5f58249b82fd5e31bc52f3285789c
|
data/README.md
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
# Capistrano::MysqlTables
|
2
2
|
|
3
|
-
|
3
|
+
Capistrano MysqlTables allows for easy transfer of MySQL tables between development and production
|
4
|
+
environments.
|
4
5
|
|
5
|
-
|
6
|
+
## Requirements
|
7
|
+
This plugin makes a couple of assumptions:
|
8
|
+
|
9
|
+
* The existence of a `config/database.yml` file, as is used in Ruby on Rails environments.
|
10
|
+
* That your production ssh user has their MySQL password setup in a `~/.my.cnf`
|
11
|
+
file as shown below. This is for security reasons, we don't want to pull the password out
|
12
|
+
of the database.yml file and print to the command line.
|
13
|
+
|
14
|
+
```
|
15
|
+
[client]
|
16
|
+
password="your-super-cool-password"
|
17
|
+
```
|
6
18
|
|
7
19
|
## Installation
|
8
20
|
|
@@ -20,20 +32,17 @@ Or install it yourself as:
|
|
20
32
|
|
21
33
|
$ gem install capistrano-mysql_tables
|
22
34
|
|
23
|
-
|
35
|
+
Then add to your Capfile with:
|
24
36
|
|
25
|
-
|
37
|
+
require "capistrano/mysql_tables"
|
26
38
|
|
27
|
-
##
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
39
|
+
## Usage
|
34
40
|
|
35
|
-
|
41
|
+
The plugin provides two self-explanatory tasks, `db:push_tables` and `db:pull_tables`.
|
36
42
|
|
43
|
+
Run a task without any arguments, eg. `cap production db:push_tables`, and you'll be asked to provide
|
44
|
+
one or more table names to move.
|
45
|
+
Or you can provide the table names directly: `cap production "db:push_tables[table1 table2]"`.
|
37
46
|
|
38
47
|
## License
|
39
48
|
|