module BinInstall::Yarn
Public Class Methods
install()
click to toggle source
# File lib/bin_install/yarn.rb, line 3 def self.install puts 'Installing Yarn...'.white Brew::Package.install_or_upgrade('yarn') system('yarn install') end
install!()
click to toggle source
# File lib/bin_install/yarn.rb, line 9 def self.install! puts 'Installing Yarn...'.white Brew::Package.install_or_upgrade!('yarn') BinInstall.system!('yarn install') end
installed?()
click to toggle source
# File lib/bin_install/yarn.rb, line 23 def self.installed? Shell.executable_exists?('yarn') end
upgrade()
click to toggle source
# File lib/bin_install/yarn.rb, line 15 def self.upgrade system('yarn upgrade') end
upgrade!()
click to toggle source
# File lib/bin_install/yarn.rb, line 19 def self.upgrade! BinInstall.system!('yarn upgrade') end