backup-ssh 4.4.3 → 4.4.4

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
  SHA256:
3
- metadata.gz: f33b7752e2b09eac760f52a3ecd5c8d9e850dd651ca03e3ce4a7621099281e40
4
- data.tar.gz: 18bb1d38f52f7ee2d9c58816159bb86ac3b28f27410d7a66d187b4c3fa83746e
3
+ metadata.gz: 90ff579bff740d6540b19fb38c45ec8ba4ade5339476061011369ccd6c8b4934
4
+ data.tar.gz: 422cfa737337ec3a07cce65ff37b3f91ef7456a47bc56f468c896c9f5aeeb1b1
5
5
  SHA512:
6
- metadata.gz: 56f310bfa5d595c2582c7b6995c2c95ecb5afd06672bb4bb0621ba0dc73157cefd51115b258af17c78c8ec16c6d04ec2469109558ae875080b4b5bce11624c10
7
- data.tar.gz: 9d7b433616f0b3260a4fc6130ad4b5a896a789d58138787da4db80cb9ab1bb9e3916b9281a828c32977d65856f00e8848a6cfb5f691c1debac7be62c58fe56cb
6
+ metadata.gz: 57f043b2014dcb317b6919da94dd5342d2d8d4f70ac44d4424a428f7214cdf6713d9bbea128c6beb99b64e26db3efeca0e60a1f04a16781354950bb7c8fe8506
7
+ data.tar.gz: b4ae64e4880f1d7a7dc60a874ab3544b1f443c9c3e32dc8f709ea0dbe48c727a095af2328aa9f4c723850fea5576426538a1f7eba1669e47a3da3a79bd58f1bf
@@ -105,13 +105,17 @@ module Backup
105
105
  private
106
106
 
107
107
  def mysqldump
108
- "#{ ssh_option } #{ utility(:mysqldump) } #{ user_options } #{ credential_options } " +
109
- "#{ connectivity_options } #{ name_option } " +
110
- "#{ tables_to_dump } #{ tables_to_skip }"
111
- end
112
-
113
- def ssh_option
114
- "ssh #{ssh}" if ssh
108
+ [
109
+ ("ssh #{ssh}" if ssh),
110
+ ("MYSQL_PWD='#{Shellwords.escape(password)}'" if password),
111
+ utility(:mysqldump),
112
+ user_options,
113
+ ("--user='#{Shellwords.escape(username)}'" if username),
114
+ connectivity_options,
115
+ name_option,
116
+ tables_to_dump,
117
+ tables_to_skip
118
+ ].compact.join(' ')
115
119
  end
116
120
 
117
121
  def credential_options
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backup
4
- VERSION = '4.4.3'
4
+ VERSION = '4.4.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.3
4
+ version: 4.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-15 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList