Class: Rays::Backup
- Inherits:
-
Object
- Object
- Rays::Backup
- Defined in:
- lib/rays/config/backup.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#number_of_backups ⇒ Object
readonly
Returns the value of attribute number_of_backups.
-
#stop_server ⇒ Object
readonly
Returns the value of attribute stop_server.
Instance Method Summary collapse
-
#initialize(directory, number_of_backups, stop_server) ⇒ Backup
constructor
A new instance of Backup.
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
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
26 27 28 |
# File 'lib/rays/config/backup.rb', line 26 def directory @directory end |
#number_of_backups ⇒ Object (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_server ⇒ Object (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 |