Module: BinInstall::Gem
- Defined in:
- lib/bin_install/gem.rb
Class Method Summary collapse
Class Method Details
.install ⇒ Object
3 4 5 6 7 |
# File 'lib/bin_install/gem.rb', line 3 def self.install puts 'Installing gems...'.white system('gem install bundler --conservative') system('bundle install') end |
.install! ⇒ Object
9 10 11 12 13 |
# File 'lib/bin_install/gem.rb', line 9 def self.install! puts 'Installing gems...'.white BinInstall.system!('gem install bundler --conservative') BinInstall.system!('bundle install') end |
.installed? ⇒ Boolean
15 16 17 |
# File 'lib/bin_install/gem.rb', line 15 def self.installed? Shell.executable_exists?('gem') end |