class LearnOpen::DependencyInstallers::GemInstaller

Public Class Methods

detect(lesson, location) click to toggle source
# File lib/learn_open/services/dependency_installers/gem_installer.rb, line 4
def self.detect(lesson, location)
  File.exists?("#{lesson.to_path}/Gemfile")
end

Public Instance Methods

run() click to toggle source
# File lib/learn_open/services/dependency_installers/gem_installer.rb, line 8
def run
  io.puts "Bundling..."
  system_adapter.run_command("bundle install")
end