Class: RedmineInstaller::Backup
- Defined in:
- lib/redmine-installer/backup.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from Task
Instance Method Summary collapse
-
#initialize(redmine_root) ⇒ Backup
constructor
A new instance of Backup.
- #up ⇒ Object
Methods inherited from Task
Methods included from Utils
#class_name, #create_dir, #env_user, #error, #logger, #ok, #pastel, #print_title, #prompt, #run_command
Constructor Details
Instance Method Details
#up ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/redmine-installer/backup.rb', line 9 def up @target_redmine.ensure_and_valid_root @target_redmine.validate @target_redmine.check_running_state @target_redmine.make_backup puts puts pastel.bold('Redmine was backuped') logger.info('Redmine was backuped') end |