backupper 0.2.0 → 0.2.1

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: cf9b9f0ad9102e098e8d9e6e5b01579ae4f5a267
4
- data.tar.gz: 84d0c5e026bf5fee33cb73daa74af561c72044c7
3
+ metadata.gz: c205c2445a240bbf8152fcb60a2dff3ac73227fa
4
+ data.tar.gz: '0780c2842af054097dec06bcc6bc03e35175fcb1'
5
5
  SHA512:
6
- metadata.gz: 7d4e495caec3e4b74965af5e54b8f8bb7591435c05bda3a698ee46828b8f8653a6e9f6e3e073bf3defcf675726e0c85b3f2a04adddf968dd040b7562ad7b5bb6
7
- data.tar.gz: 4413eb2020b5db225069607f3be0de358403885707a32581897e8efc495ef0b5f3c918f0a676ac198f170f23932cef191750a3100fc353d0baf14e7df871155f
6
+ metadata.gz: 78d45d563ff81017ecc83f55674790765fae60909b11f4ab4acbb4ceb592ad0f9ce7ea1503f3e7d262ab85925d3555550b8f84df76a9a080683ba48ba7521918
7
+ data.tar.gz: 85f4fb91af12ade124e7311d35d07da1aeee40229d0662a535b2210e32c17fdd961d2731a2c91dec51909bee3b49d978b3c7b837cc5c933efc1d56e07ecf8e56
@@ -87,10 +87,9 @@ class Backupper
87
87
  def postgresql_dump_command(database:, username: 'root', password: nil, dump_options: nil, outfile:)
88
88
  params = []
89
89
  params << "-U #{username}"
90
- params << "-W #{password}" if password
91
90
  params << "'#{database}'"
92
91
  params << dump_options if dump_options
93
- return "pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
92
+ return "PGPASSWORD=#{password} pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
94
93
  end
95
94
 
96
95
  def download_dump(key:, adapter: 'mysql', host:, password: nil, database:, db_username: 'root', db_password: nil, dump_options: nil, outdir:, extra_copy: nil)
@@ -1,3 +1,3 @@
1
1
  class Backupper
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-03 00:00:00.000000000 Z
11
+ date: 2018-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit