bin_install 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bin_install/mysql.rb +2 -0
- data/lib/bin_install/shell.rb +11 -0
- data/lib/bin_install/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: f539113eb0dd1752b92b7d6636438a472daf952abdf8cb4f58e7fa12bbad9c86
|
4
|
+
data.tar.gz: d1caf23400f476dacccb7d93668d93acb3cf89cdfb360d0d67a5651654ddafbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec325ef9fc88b650fe9b5ff4ae8d44efafc21f654c19b5ce098528e219e319be7b7f0c7d0847b4bde0cb2a3f370d537c4738ac53a818198b8909f91cfcdf8e20
|
7
|
+
data.tar.gz: 987b644d71cdef1090d28b79941c1b33273155517013d7aed2f161befa9900a495cacad4158728f06dfb9a20324e184c7faf30f56406ed0a4b79014170d20f20
|
data/lib/bin_install/mysql.rb
CHANGED
@@ -4,12 +4,14 @@ module BinInstall
|
|
4
4
|
puts 'Installing MySQL...'.white
|
5
5
|
Brew::Package.install_or_upgrade('mysql')
|
6
6
|
Brew::Service.start('mysql')
|
7
|
+
Shell.wait(10) # Give MySQL time to spin up.
|
7
8
|
end
|
8
9
|
|
9
10
|
def self.install!
|
10
11
|
puts 'Installing MySQL...'.white
|
11
12
|
Brew::Package.install_or_upgrade!('mysql')
|
12
13
|
Brew::Service.start!('mysql')
|
14
|
+
Shell.wait(10) # Give MySQL time to spin up.
|
13
15
|
end
|
14
16
|
|
15
17
|
def self.create_root
|
data/lib/bin_install/shell.rb
CHANGED
@@ -38,5 +38,16 @@ module BinInstall
|
|
38
38
|
def self.profile_paths
|
39
39
|
[File.expand_path('~/.zshrc'), File.expand_path('~/.bash_profile')]
|
40
40
|
end
|
41
|
+
|
42
|
+
def self.wait(seconds = 10)
|
43
|
+
print 'Please wait: '.purple
|
44
|
+
seconds.downto(1) do |i|
|
45
|
+
print "#{i}".purple
|
46
|
+
3.times do
|
47
|
+
sleep(1/3.0)
|
48
|
+
print '.'.purple
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
41
52
|
end
|
42
53
|
end
|
data/lib/bin_install/version.rb
CHANGED