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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53a27ba7825f89239352f0fe6e2abcfae91f0e08
4
- data.tar.gz: 19512d7cd7494684d3625a181df610df15437246
3
+ metadata.gz: cb9d91ca9a379e9a17c99d95f84512131afb850f
4
+ data.tar.gz: bef7fc112547e52ea3ce8623cbe9f40cda186089
5
5
  SHA512:
6
- metadata.gz: 5fbca20aa0f85a19beea1e114e8f2afb40d40ca1f897b51cc7e943e4155c2d631c89001655373b09e33bc44e6ebe01f483540d447e1a70d7a24b4814c9a4c06c
7
- data.tar.gz: 210ea7bb118d109e2df0d097c6f7ab6fc1931662324565151b14275339e6c9f44e66eb6f7c98844c822e6bf51714734fdc2a03bf130b5911c0df664227f4e173
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
- unless File.directory?(options[:backup_dir])
249
- @log.info("Creating #{options[:backup_dir]}")
250
- run ['mkdir', '-p', options[:backup_dir]] unless @dry_run
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!
@@ -18,5 +18,5 @@
18
18
  # along with MySQL Manager. If not, see <http://www.gnu.org/licenses/>.
19
19
  #
20
20
  module MysqlManager
21
- VERSION = "1.0.6"
21
+ VERSION = "1.0.7"
22
22
  end
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.6
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-05-31 00:00:00.000000000 Z
11
+ date: 2015-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parseconfig