Sha256: d84bdfbdd2f74089567d70f757529c9cdeaa2f1022ed0d6d89bfa3f1869800a7
Contents?: true
Size: 670 Bytes
Versions: 11
Compression:
Stored size: 670 Bytes
Contents
module Backup module Storage class Local < Base # Store on same machine, preferentially in a different hard drive or in # a mounted network path (NFS, Samba, etc) attr_accessor :path, :tmp_path, :final_file # Stores the backup file on local machine def initialize(adapter) self.path = adapter.procedure.get_storage_configuration.attributes['path'] self.tmp_path = adapter.tmp_path self.final_file = adapter.final_file run "mkdir -p #{path}" run "cp #{File.join(tmp_path, final_file).gsub('\ ', ' ')} #{File.join(path, final_file)}" end end end end
Version data entries
11 entries across 11 versions & 3 rubygems