mysql_manager 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mysql_manager/utilities.rb +6 -4
- data/lib/mysql_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9d91ca9a379e9a17c99d95f84512131afb850f
|
4
|
+
data.tar.gz: bef7fc112547e52ea3ce8623cbe9f40cda186089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddab4e0977461fe5425ebff1f23d6881b988947bd9e0383c6668f666a96e5778d6349cfe40b2b5cf1aafc5e35c5e239b4d6c4c2847cb60739b4cf764cc93c6a9
|
7
|
+
data.tar.gz: 5d7a2c1bc0b0625e9b1bc9c93cabf07b7009a155e8dbad6815f2c31ea3101e7cc8db1cef6bed537bfed15b6f52ea545b3ab4201e7f17048b6a2a7ecfee5d1f22
|
@@ -244,10 +244,12 @@ module MysqlManager
|
|
244
244
|
rsync << options[:data_dir] + '/'
|
245
245
|
rsync << options[:backup_dir] + '/'
|
246
246
|
|
247
|
-
# create target directory if it does not already exist
|
248
|
-
|
249
|
-
|
250
|
-
|
247
|
+
# create target directory if it does not already exist (unless ofcourse we're syncing to a remote target denoted by rsync:// or an rsync module denoted by ::)
|
248
|
+
if options[:backup_dir] !~ /^rsync:\/\// && options[:backup_dir] !~ /::/
|
249
|
+
unless File.directory?(options[:backup_dir])
|
250
|
+
@log.info("Creating #{options[:backup_dir]}")
|
251
|
+
run ['mkdir', '-p', options[:backup_dir]] unless @dry_run
|
252
|
+
end
|
251
253
|
end
|
252
254
|
|
253
255
|
rsync.flatten!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Osterman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parseconfig
|