class LearnOpen::FileBackupStarter

Constants

BACKUP_LAB_PROCESS

Attributes

lesson[R]
location[R]
system_adapter[R]

Public Class Methods

call(lesson, location, options) click to toggle source
# File lib/learn_open/services/file_backup_starter.rb, line 8
def self.call(lesson, location, options)
  self.new(lesson, location, options).call
end
new(lesson, location, options) click to toggle source
# File lib/learn_open/services/file_backup_starter.rb, line 12
def initialize(lesson, location, options)
  @lesson = lesson
  @location = location
  @system_adapter = options.fetch(:system_adapter, LearnOpen.system_adapter)
end

Public Instance Methods

call() click to toggle source
# File lib/learn_open/services/file_backup_starter.rb, line 18
def call
  system_adapter.spawn("restore-lab", block: true)
  system_adapter.spawn(BACKUP_LAB_PROCESS)
end