platform_sh 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 +4 -4
- data/lib/platform_sh.rb +7 -1
- data/lib/platform_sh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e71be526233086dc4dec85f9e982c83ba9b53fc
|
4
|
+
data.tar.gz: bde54716176c65d76027a9444bbd4aa8df40cee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ee507001a05ab47ddf7ca083f441cc72d70c297583c3b1b7ebf4a6f522d7b2a1f9d191784fa7b92b8f6237910acf9f46e4471be045ec4b11edb40bca02c30d3
|
7
|
+
data.tar.gz: e2d9c4ee007c710af96f9e42f06d642ef74d9f8a1d9c3d0ebcb1078100c58cd3f212a9442ceba19b282f0906da83ba77c8e9cfb0b823b0afcead6065efe65d22
|
data/lib/platform_sh.rb
CHANGED
@@ -64,7 +64,13 @@ class PlatformSH
|
|
64
64
|
return nil
|
65
65
|
when 1
|
66
66
|
database = databases.first[1][0]
|
67
|
-
|
67
|
+
#This is needed to choose between mysql and mysql2 gems, magically.
|
68
|
+
if database['scheme'] == "mysql"
|
69
|
+
scheme = "mysql2"
|
70
|
+
else
|
71
|
+
scheme = database['scheme']
|
72
|
+
end
|
73
|
+
database_url = "#{scheme}://#{}:#{database['password']}@#{database['host']}:#{database['port']}/#{database['path']}"
|
68
74
|
return database_url
|
69
75
|
else
|
70
76
|
$stderr.puts "More than one database, giving up, set configuration by hand"
|
data/lib/platform_sh/version.rb
CHANGED