Sha256: d9bb3304bb7f9c87931ca5413bde23378bb69bb0329d5301072e6051a4f0fcc6
Contents?: true
Size: 535 Bytes
Versions: 5
Compression:
Stored size: 535 Bytes
Contents
module LearnOpen class FileBackupStarter attr_reader :lesson, :location, :system_adapter def self.call(lesson, location, options) self.new(lesson, location, options).call end def initialize(lesson, location, options) @lesson = lesson @location = location @system_adapter = options.fetch(:system_adapter, LearnOpen.system_adapter) end def call system_adapter.spawn("restore-lab", block: true) system_adapter.watch_dir("#{lesson.to_path}", "backup-lab") end end end
Version data entries
5 entries across 5 versions & 1 rubygems