module Gears::Dependencies
Deals with the dependencies from Gears
packages
Public Class Methods
install(from_path:)
click to toggle source
# File lib/robot_sweatshop/gears/dependencies.rb, line 7 def self.install(from_path:) install_gems from_path end
install_gems(package_path)
click to toggle source
# File lib/robot_sweatshop/gears/dependencies.rb, line 11 def self.install_gems(package_path) gemfile = "#{package_path}/Gemfile" return unless File.exist? gemfile name = File.basename(package_path).split('/').last Announce.info "Installing gems for #{name}" system "bundle install --gemfile #{gemfile}" end