Class: Backup::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/task.rb

Direct Known Subclasses

Database, Files, Repositories

Instance Method Summary collapse

Constructor Details

#initialize(progress) ⇒ Task

Returns a new instance of Task.



5
6
7
# File 'lib/backup/task.rb', line 5

def initialize(progress)
  @progress = progress
end

Instance Method Details

#dump(path, backup_id) ⇒ Object

dump task backup to ‘path`

Parameters:

  • path (String)

    fully qualified backup task destination

  • backup_id (String)

    unique identifier for the backup

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/backup/task.rb', line 13

def dump(path, backup_id)
  raise NotImplementedError
end

#post_restore_warningObject

a string returned here will be displayed to the user after calling #restore



27
28
# File 'lib/backup/task.rb', line 27

def post_restore_warning
end

#pre_restore_warningObject

a string returned here will be displayed to the user before calling #restore



23
24
# File 'lib/backup/task.rb', line 23

def pre_restore_warning
end

#restore(path) ⇒ Object

restore task backup from ‘path`

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/backup/task.rb', line 18

def restore(path)
  raise NotImplementedError
end