bin_install 0.0.13 → 0.0.14

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: dc5d88dd3b719d911017108ac2637ccf2d4e7649635c3f74e3dd6256a36e8eb3
4
- data.tar.gz: a5488de660c776f5c4809acc9cba64d441f2fcabf1cb82ccd238b69618c8b5f1
3
+ metadata.gz: 9c29e26bb5737ae53deff07492b5452de425c756d126f401c238b0a4adadc01d
4
+ data.tar.gz: 6c71e63364358f4da49b67ff8143a1738afb786f268c794a0447c923170091d8
5
5
  SHA512:
6
- metadata.gz: 91f73d09003d6aa3ae769e5c85c5391efb6a30edb2c097f6fd95b56a030a2aa163e2adcff56dda85c0ac1506b247fb8e8774532fff8d452f1cd59b8b0f6d30eb
7
- data.tar.gz: eac9679423dce3263483e080170e4b9c71a910e8b8b43359c49133a38ab6028c1304db9f7c68d9c7384b23b211503da358337bd63e8f0e9986dd6fde71385055
6
+ metadata.gz: 0233347fd71b898c6ef0ca06ecf05b1ec159eee95e6568605088d5c0204d451ca64be511b9a2f82a8a4d3c301d895a796f509381b3bf90e3e85b6aeaf0b1d83d
7
+ data.tar.gz: 3d43d6244065d624f2a41105027eca98131cb1e6ea6d8f6186b907062974165f72c4c9c55437f865ce367beefd202e9005f564fb8fe0a0974d803954eafdf31e
@@ -1,15 +1,13 @@
1
1
  module BinInstall
2
2
  module Node
3
3
  def self.install
4
+ puts 'Installing Node.js...'.white
4
5
  Brew::Package.install_or_upgrade('node')
5
- Brew::Package.install_or_upgrade('yarn')
6
- Yarn.install
7
6
  end
8
7
 
9
8
  def self.install!
9
+ puts 'Installing Node.js...'.white
10
10
  Brew::Package.install_or_upgrade!('node')
11
- Brew::Package.install_or_upgrade!('yarn')
12
- Yarn.install!
13
11
  end
14
12
 
15
13
  def self.installed?
@@ -30,7 +30,7 @@ module BinInstall
30
30
  version
31
31
  rehash
32
32
  doctor
33
- reload_shell!
33
+ puts 'First install done **************************'
34
34
  end
35
35
 
36
36
  def self.first_install!
@@ -42,7 +42,6 @@ module BinInstall
42
42
  version!
43
43
  rehash!
44
44
  doctor!
45
- reload_shell!
46
45
  end
47
46
 
48
47
  def self.reload_shell!
@@ -54,12 +53,14 @@ module BinInstall
54
53
 
55
54
  def self.install_ruby(version = nil)
56
55
  version ||= RubyEnvironmentManager.required_ruby_version
56
+ puts "Installing Ruby #{version}...".white
57
57
 
58
58
  if version
59
59
  if RubyEnvironmentManager.ruby_version_installed?(version)
60
60
  puts "Ruby #{version} is already installed. Skipping.".blue
61
61
  else
62
62
  system("rbenv install #{version}")
63
+ reload_shell!
63
64
  end
64
65
  else
65
66
  puts 'Unknown Ruby version. Create .ruby-version file.'
@@ -68,12 +69,14 @@ module BinInstall
68
69
 
69
70
  def self.install_ruby!(version = nil)
70
71
  version ||= RubyEnvironmentManager.required_ruby_version
72
+ puts "Installing Ruby #{version}...".white
71
73
 
72
74
  if version
73
75
  if RubyEnvironmentManager.ruby_version_installed?(version)
74
76
  puts "Ruby #{version} is already installed. Skipping.".blue
75
77
  else
76
78
  BinInstall.system!("rbenv install #{version}")
79
+ reload_shell!
77
80
  end
78
81
  else
79
82
  abort('Unknown Ruby version. Create .ruby-version file.'.red)
@@ -1,3 +1,3 @@
1
1
  module BinInstall
2
- VERSION = '0.0.13'.freeze
2
+ VERSION = '0.0.14'.freeze
3
3
  end
@@ -1,19 +1,23 @@
1
1
  module BinInstall
2
2
  module Yarn
3
3
  def self.install
4
- system('bin/yarn install')
4
+ puts 'Installing Yarn...'.white
5
+ Brew::Package.install_or_upgrade('yarn')
6
+ system('yarn install')
5
7
  end
6
8
 
7
9
  def self.install!
8
- BinInstall.system!('bin/yarn install')
10
+ puts 'Installing Yarn...'.white
11
+ Brew::Package.install_or_upgrade!('yarn')
12
+ BinInstall.system!('yarn install')
9
13
  end
10
14
 
11
15
  def self.upgrade
12
- system('bin/yarn upgrade')
16
+ system('yarn upgrade')
13
17
  end
14
18
 
15
19
  def self.upgrade!
16
- BinInstall.system!('bin/yarn upgrade')
20
+ BinInstall.system!('yarn upgrade')
17
21
  end
18
22
 
19
23
  def self.installed?
@@ -12,6 +12,7 @@ Dir.chdir(APP_ROOT) do
12
12
  BinInstall::Gem.install!
13
13
  BinInstall::Git.install
14
14
  BinInstall::Node.install
15
+ BinInstall::Yarn.install
15
16
  BinInstall::Redis.install
16
17
  BinInstall::Rails.db_setup
17
18
  BinInstall::Rails.clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bin_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Singer