capistrano-bedrock-mysql 0.0.1 → 0.0.2
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/Gemfile.lock +8 -7
- data/README.md +2 -0
- data/capistrano-bedrock-mysql.gemspec +1 -1
- data/lib/capistrano/tasks/mysql.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: ddedaa3ec17020b46c44f53faefde0faba38e6c1
|
|
4
|
+
data.tar.gz: c0434a75f87b63397fbc52e981998e9543660c30
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81575abb1e88f91395e13096cb866025fa5794a7e884314158bd1b76d96f94ce133ddb292058237151d095e209b9583906cd1f6a96b8c7905e84e52540434655
|
|
7
|
+
data.tar.gz: 02870463f8269d7ebdfc0d40d830666e08dab269a8a8645d0e0e2301f8f5c9618a9e6b500bd6cc9eea76247abe6ea74b367b79ed3195f1a3073228cc25b7ae36
|
data/Gemfile.lock
CHANGED
|
@@ -8,19 +8,17 @@ PATH
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
capistrano (3.
|
|
11
|
+
capistrano (3.2.1)
|
|
12
12
|
i18n
|
|
13
13
|
rake (>= 10.0.0)
|
|
14
14
|
sshkit (~> 1.3)
|
|
15
|
-
|
|
16
|
-
dotenv (2.0.1)
|
|
15
|
+
dotenv (2.1.0)
|
|
17
16
|
i18n (0.7.0)
|
|
18
17
|
net-scp (1.2.1)
|
|
19
18
|
net-ssh (>= 2.6.5)
|
|
20
|
-
net-ssh (
|
|
21
|
-
rake (
|
|
22
|
-
sshkit (1.
|
|
23
|
-
colorize (>= 0.7.0)
|
|
19
|
+
net-ssh (3.0.2)
|
|
20
|
+
rake (11.0.1)
|
|
21
|
+
sshkit (1.8.1)
|
|
24
22
|
net-scp (>= 1.1.2)
|
|
25
23
|
net-ssh (>= 2.8.0)
|
|
26
24
|
|
|
@@ -29,3 +27,6 @@ PLATFORMS
|
|
|
29
27
|
|
|
30
28
|
DEPENDENCIES
|
|
31
29
|
capistrano-bedrock-mysql!
|
|
30
|
+
|
|
31
|
+
BUNDLED WITH
|
|
32
|
+
1.11.2
|
data/README.md
CHANGED
|
@@ -25,6 +25,8 @@ VAGRANT_SITE_NAME=site-name
|
|
|
25
25
|
|
|
26
26
|
You also need to add the line VAGRANT_PATH to your local .env file, pointing to your local `bedrock-ansible` project. You also to keep an .env-file for each environment. Meaning you need .env for your local environment, and one for each additional environment you want to work with – i.e. .env.staging, .env.production and so on...
|
|
27
27
|
|
|
28
|
+
You will need to create the folder db_backups in your shared folder.
|
|
29
|
+
|
|
28
30
|
## Usage
|
|
29
31
|
|
|
30
32
|
Require the module in your `Capfile`:
|
|
@@ -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-bedrock-mysql'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.2'
|
|
8
8
|
spec.authors = ['Fredrik Sundström']
|
|
9
9
|
spec.email = ['fredrik.sundstrom@norkay.se']
|
|
10
10
|
spec.description = %q{MySQL tasks for roots/bedrock, using Capistrano 3.x}
|
|
@@ -71,7 +71,7 @@ def create_backup(host, user, password, name, timestamp)
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def remove_old_backups(path)
|
|
74
|
-
execute "(cd #{path}; ls -1tr | head -n -5 | xargs -d '\\n' rm)" # Keep only five latest
|
|
74
|
+
execute "(cd #{path}; ls -1tr | head -n -5 | xargs -r -d '\\n' rm)" # Keep only five latest
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
def get_latest_backup_filename(path)
|