Class: Rays::Backup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(directory, number_of_backups, stop_server) ⇒ Backup

Returns a new instance of Backup.



28
29
30
31
32
33
# File 'lib/rays/config/backup.rb', line 28

def initialize(directory, number_of_backups, stop_server)
  @directory = directory
  @number_of_backups = number_of_backups # ignored for now
  @stop_server = stop_server # if server should be stopped before backup
  default
end

Instance Attribute Details

#directoryObject (readonly)

Returns the value of attribute directory.



26
27
28
# File 'lib/rays/config/backup.rb', line 26

def directory
  @directory
end

#number_of_backupsObject (readonly)

Returns the value of attribute number_of_backups.



26
27
28
# File 'lib/rays/config/backup.rb', line 26

def number_of_backups
  @number_of_backups
end

#stop_serverObject (readonly)

Returns the value of attribute stop_server.



26
27
28
# File 'lib/rays/config/backup.rb', line 26

def stop_server
  @stop_server
end