martilla 0.2.5 → 0.2.6

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: e11427e483a11fc6fcbbe33321c6625d0f946e637769ffe5c5b395170c045f46
4
- data.tar.gz: 4a7191dfaeeb06c4a128a3b55d387c5f2648c8a88882fda12ca2d661713bd056
3
+ metadata.gz: 539f47bf2c80aa98dd5329dd2d8e480aec2957eb56e84b3085c168abba8543a0
4
+ data.tar.gz: 17fb384f8b7944b9825f104a0a9cbe44def7ae7e1f75bd60692be2704ffab5ac
5
5
  SHA512:
6
- metadata.gz: 3a8f234b16c3d79e8b3395157e83c1626b0d7494aaa86f77d4540b2025a075f6b0e63e26657fbe2af9c47a20abe24f0f1f12fc54523a1dc71b91ea645cc6549f
7
- data.tar.gz: cf3cdfa4bb8523bf507480970e8dba6ef34c2d972e2f7a21bbde1cb85f259a30d4e9fde31ae31866ea8d4feef8683e17f38caee68361f86ff6fff1d295b071e1
6
+ metadata.gz: 60f1d01f34d695b76453b53e6a05262f7e3143a4942bc3ce98a92a6f43aa84803f7fe0d02fa5c20db0bcf092a0d0769095127e4736b9ab3dafcb4590f13aef33
7
+ data.tar.gz: cd010ce56d230917b0afdf67384c06613892038881ec7de931d6b4afcca65a711553c6ab06f6f16c76f26d776d7f58231362e37b974abef2c4e45ffc0a070404
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- martilla (0.2.5)
4
+ martilla (0.2.6)
5
5
  aws-sdk-s3 (~> 1.49)
6
6
  aws-sdk-ses (~> 1.26)
7
7
  memoist (~> 0.16.0)
@@ -14,7 +14,7 @@ module Martilla
14
14
  private
15
15
 
16
16
  def connection_arguments
17
- "-u #{user} -p #{password} -P #{port} #{db}"
17
+ "#{db_name} -u #{user} -p #{password} -P #{port} #{db}"
18
18
  end
19
19
 
20
20
  def host
@@ -33,6 +33,10 @@ module Martilla
33
33
  @options['password'] || ENV['MYSQL_PASSWORD']
34
34
  end
35
35
 
36
+ def db_name
37
+ @options['db_name'] || ENV['MYSQL_DB_NAME'] || '--all-databases'
38
+ end
39
+
36
40
  def db
37
41
  @options['db'] || ENV['MYSQL_DATABASE']
38
42
  end
@@ -1,3 +1,3 @@
1
1
  module Martilla
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde