Class: Rcloner::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/rcloner/cli.rb

Instance Method Summary collapse

Instance Method Details

#__print_versionObject



10
11
12
# File 'lib/rcloner/cli.rb', line 10

def __print_version
  puts VERSION
end

#backupObject



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, options['force'])
end