diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-06-03 16:18:22 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-06-03 16:18:22 +0100 |
commit | b55ea6943f7cd5132c48409bbd2fdcba49e6e5d2 (patch) | |
tree | e96d9c2a6c727427a536efed0a6a3de264f6c361 /bin/byteback-restore | |
parent | c4b7c1f2d322935e2e4299bda17774587ff692a2 (diff) |
Resync.
Diffstat (limited to 'bin/byteback-restore')
-rwxr-xr-x | bin/byteback-restore | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bin/byteback-restore b/bin/byteback-restore index 6b542ef..2341502 100755 --- a/bin/byteback-restore +++ b/bin/byteback-restore @@ -31,8 +31,7 @@ def ssh(*ssh_args) '-l', @destination_user, @destination_host ] + - ssh_args - .map { |a| a ? a : '' } + ssh_args.map { |a| a ? a : '' } system(*args) end @@ -65,18 +64,18 @@ opts = Trollop.options do banner "byteback-restore: Restore a file\n " opt :file, 'The file to restore/list.', - type: :string + :type => :string opt :revision, "The version of the file to restore.", - type: :string + :type => :string opt :destination, 'Backup destination (i.e. user@host:/path).', - type: :string + :type => :string opt :ssh_key, 'SSH key filename', - type: :string, - default: '/etc/byteback/key', - short: 'k' + :type => :string, + :default => '/etc/byteback/key', + :short => 'k' end # |