Class: Rcloner::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rcloner::CLI
- Defined in:
- lib/rcloner/cli.rb
Instance Method Summary collapse
Instance Method Details
#__print_version ⇒ Object
10 11 12 |
# File 'lib/rcloner/cli.rb', line 10 def __print_version puts VERSION end |
#backup ⇒ Object
16 17 18 19 |
# File 'lib/rcloner/cli.rb', line 16 def backup backuper = create_backuper backuper.backup! end |
#restore(to = nil) ⇒ Object
24 25 26 27 |
# File 'lib/rcloner/cli.rb', line 24 def restore(to = nil) backuper = create_backuper backuper.restore!(to, ['force']) end |