From b55ea6943f7cd5132c48409bbd2fdcba49e6e5d2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 3 Jun 2015 16:18:22 +0100 Subject: Resync. --- bin/byteback-restore | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'bin/byteback-restore') 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 # -- cgit v1.2.3