bin_install 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bin_install/mysql.rb +12 -4
- data/lib/bin_install/postgres.rb +12 -4
- data/lib/bin_install/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42249a9f20ef5985d69dc90f2324ea5c66655ad4bdbb52555cd6a1de193586ca
|
4
|
+
data.tar.gz: 7a8397a32cf4ebf2de095e321e76287e22bc0a635ab6adc9a569b50f33258f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c5facdc4797842a34b7c7f5c72cd8b12d685b0e83cdd4b66d20f4349181130e46b5626dd89caa4df10d8faf82633604e60826e54480969beaa1ac929cc1d07
|
7
|
+
data.tar.gz: d79c433397c3ee58a880907d83c5aeb53944e951bdda58d9f6fe5637525336a7ab761ab39f81014e5a42613aa2407e7684fc764d3a0c37c7d7b8bb42764f743e
|
data/lib/bin_install/mysql.rb
CHANGED
@@ -1,15 +1,23 @@
|
|
1
1
|
module BinInstall
|
2
2
|
module Mysql
|
3
|
-
def self.install
|
3
|
+
def self.install(version = nil)
|
4
4
|
puts 'Installing MySQL...'.white
|
5
|
-
|
5
|
+
if version
|
6
|
+
Brew::Package.install_or_upgrade("mysql@#{version}")
|
7
|
+
else
|
8
|
+
Brew::Package.install_or_upgrade('mysql')
|
9
|
+
end
|
6
10
|
Brew::Service.start('mysql')
|
7
11
|
Shell.wait(10) # Give MySQL time to spin up.
|
8
12
|
end
|
9
13
|
|
10
|
-
def self.install!
|
14
|
+
def self.install!(version = nil)
|
11
15
|
puts 'Installing MySQL...'.white
|
12
|
-
|
16
|
+
if version
|
17
|
+
Brew::Package.install_or_upgrade!("mysql@#{version}")
|
18
|
+
else
|
19
|
+
Brew::Package.install_or_upgrade!('mysql')
|
20
|
+
end
|
13
21
|
Brew::Service.start!('mysql')
|
14
22
|
Shell.wait(10) # Give MySQL time to spin up.
|
15
23
|
end
|
data/lib/bin_install/postgres.rb
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
module BinInstall
|
2
2
|
module Postgres
|
3
|
-
def self.install
|
3
|
+
def self.install(version = nil)
|
4
4
|
puts 'Installing PostgreSQL...'.white
|
5
|
-
|
5
|
+
if version
|
6
|
+
Brew::Package.install_or_upgrade("postgresql@#{version}")
|
7
|
+
else
|
8
|
+
Brew::Package.install_or_upgrade('postgresql')
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
8
|
-
def self.install!
|
12
|
+
def self.install!(version = nil)
|
9
13
|
puts 'Installing PostgreSQL...'.white
|
10
|
-
|
14
|
+
if version
|
15
|
+
Brew::Package.install_or_upgrade!("postgresql@#{version}")
|
16
|
+
else
|
17
|
+
Brew::Package.install_or_upgrade!('postgresql')
|
18
|
+
end
|
11
19
|
end
|
12
20
|
|
13
21
|
def self.create_superuser(username = 'postgres')
|
data/lib/bin_install/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bin_install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Singer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|