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
25 26 27 |
# File 'lib/bin_install/gem.rb', line 25 def self.installed? Shell.executable_exists?('gem') end |
.update ⇒ Object
15 16 17 18 |
# File 'lib/bin_install/gem.rb', line 15 def self.update puts 'Updating gems...'.white system('bundle update') end |
.update! ⇒ Object
20 21 22 23 |
# File 'lib/bin_install/gem.rb', line 20 def self.update! puts 'Updating gems...'.white BinInstall.system!('bundle update') end |