Class: Backupsss::Runner
- Inherits:
-
Object
- Object
- Backupsss::Runner
- Defined in:
- lib/backupsss.rb
Overview
A Class for running this backup utility
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Runner
Returns a new instance of Runner.
17 18 19 |
# File 'lib/backupsss.rb', line 17 def initialize @config = Backupsss::Configuration.new end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
15 16 17 |
# File 'lib/backupsss.rb', line 15 def config @config end |
Instance Method Details
#run ⇒ Object
21 22 23 |
# File 'lib/backupsss.rb', line 21 def run config.backup_freq ? run_scheduled : run_oneshot end |