diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
commit | 659a651aa294c335e519b4c72bbd052b3199a793 (patch) | |
tree | a36a95dd652717624034c553bf18c7d66156ccf5 /bin/byteback-setup-client | |
parent | 38c89a9e32a67f96b40d756a5c356f8c31247ab9 (diff) |
First pass with rubocoprubocop
Diffstat (limited to 'bin/byteback-setup-client')
-rwxr-xr-x | bin/byteback-setup-client | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/byteback-setup-client b/bin/byteback-setup-client index 988d4b8..c81ca1f 100755 --- a/bin/byteback-setup-client +++ b/bin/byteback-setup-client @@ -23,17 +23,17 @@ end opts = Trollop.options do opt :hostname, 'Set host name for backups', - :type => :string + type: :string opt :destination, 'Backup destination (i.e. user@host:/path)', - :type => :string + type: :string end @destination = opts[:destination] @hostname = opts[:hostname] _dummy, @destination_user, @destination_host, colon, @destination_path = - /^(.*)?(?:@)([^:]+)(:)(.*)?$/.match(@destination).to_a + /^(.*)?(?:@)([^:]+)(:)(.*)?$/.match(@destination).to_a @destination_user ||= 'byteback' @destination_path ||= '' |