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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ec444f3e276f09f6a91d3825acb41d87c3b3d97
4
- data.tar.gz: e24acb3b0636f3d8f5847d5e695ed93afed0be66
3
+ metadata.gz: ddedaa3ec17020b46c44f53faefde0faba38e6c1
4
+ data.tar.gz: c0434a75f87b63397fbc52e981998e9543660c30
5
5
  SHA512:
6
- metadata.gz: 18eb876a79e50c796fab8a7c478ebb4a1ce23e952ca922f48a3adb57d0f6b61fd3ea689ce3fffa7dcf8a3c0f57d5b9609ba90f2a07ed26f04d3316924a2b3153
7
- data.tar.gz: 5b06513b2c0b5495a87c1a0df75b6703e7478ee08712cd08b2cd9ec81bf14cab4299a08a930c58612b851347817fdb2c64d047d64001ccc897de1f6fe3933720
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.4.0)
11
+ capistrano (3.2.1)
12
12
  i18n
13
13
  rake (>= 10.0.0)
14
14
  sshkit (~> 1.3)
15
- colorize (0.7.7)
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 (2.9.2)
21
- rake (10.4.2)
22
- sshkit (1.7.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.1'
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-bedrock-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fredrik Sundström