class LearnOpen::DependencyInstallers::BaseInstaller
Attributes
environment[R]
io[R]
lesson[R]
location[R]
system_adapter[R]
Public Class Methods
call(lesson, location, environment, options)
click to toggle source
# File lib/learn_open/services/dependency_installers/base_installer.rb, line 6 def self.call(lesson, location, environment, options) if self.detect(lesson, location) self.new(lesson, location, environment, options).run end end
new(lesson, location, environment, options)
click to toggle source
# File lib/learn_open/services/dependency_installers/base_installer.rb, line 12 def initialize(lesson, location, environment, options) @lesson = lesson @location = location @environment = environment @system_adapter = options.fetch(:system_adapter, LearnOpen.system_adapter) @io = options.fetch(:io, LearnOpen.default_io) end