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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/martilla/databases/mysql.rb +5 -1
- data/lib/martilla/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 539f47bf2c80aa98dd5329dd2d8e480aec2957eb56e84b3085c168abba8543a0
|
4
|
+
data.tar.gz: 17fb384f8b7944b9825f104a0a9cbe44def7ae7e1f75bd60692be2704ffab5ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f1d01f34d695b76453b53e6a05262f7e3143a4942bc3ce98a92a6f43aa84803f7fe0d02fa5c20db0bcf092a0d0769095127e4736b9ab3dafcb4590f13aef33
|
7
|
+
data.tar.gz: cd010ce56d230917b0afdf67384c06613892038881ec7de931d6b4afcca65a711553c6ab06f6f16c76f26d776d7f58231362e37b974abef2c4e45ffc0a070404
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/martilla/version.rb
CHANGED