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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f1b55cfd879b0e355bbd308276d926aa905f9434fdc8ba4f21ab08e277a1ca7
4
- data.tar.gz: 18e14e305685fc4488fde22b43b428dfe74ced4272c0ed4896218dc872b8ccd6
3
+ metadata.gz: 42249a9f20ef5985d69dc90f2324ea5c66655ad4bdbb52555cd6a1de193586ca
4
+ data.tar.gz: 7a8397a32cf4ebf2de095e321e76287e22bc0a635ab6adc9a569b50f33258f2e
5
5
  SHA512:
6
- metadata.gz: e94f481695fe1a71e461d6b9edf74080dfb828178460a2122c23aba4707da026907e20e2f190db85f465f9a7ff4a2b2b91050941a4caafc06b4d3af92407d132
7
- data.tar.gz: 83713a84d78c110d0d09be838dc2c6c229ecb7efd484a68c555bafe4110b6ed7ce2bbe39d1ce51e1158ea14046b880b441d1243a2625ff23454d6f17f922968e
6
+ metadata.gz: 80c5facdc4797842a34b7c7f5c72cd8b12d685b0e83cdd4b66d20f4349181130e46b5626dd89caa4df10d8faf82633604e60826e54480969beaa1ac929cc1d07
7
+ data.tar.gz: d79c433397c3ee58a880907d83c5aeb53944e951bdda58d9f6fe5637525336a7ab761ab39f81014e5a42613aa2407e7684fc764d3a0c37c7d7b8bb42764f743e
@@ -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
- Brew::Package.install_or_upgrade('mysql')
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
- Brew::Package.install_or_upgrade!('mysql')
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
@@ -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
- Brew::Package.install_or_upgrade('postgresql')
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
- Brew::Package.install_or_upgrade!('postgresql')
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')
@@ -1,3 +1,3 @@
1
1
  module BinInstall
2
- VERSION = '0.0.31'.freeze
2
+ VERSION = '0.0.32'.freeze
3
3
  end
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.31
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-04 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print