From 8cc1b27f3f5a5fd7534e53849b4a1e8d08110d34 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sun, 15 Mar 2020 18:36:28 +0100 Subject: [PATCH] doc: Repair YARD annotations --- lib/aruba/api/commands.rb | 8 ++++---- lib/aruba/api/filesystem.rb | 13 ++----------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/lib/aruba/api/commands.rb b/lib/aruba/api/commands.rb index 45c47c32c..362e28e0e 100644 --- a/lib/aruba/api/commands.rb +++ b/lib/aruba/api/commands.rb @@ -168,16 +168,16 @@ def run_command(cmd, opts = {}) # @param [String] cmd # The command to be executed # - # @param [Hash] options + # @param [Hash] opts # Options for aruba # - # @option options [Boolean] fail_on_error + # @option opts [Boolean] :fail_on_error # Should aruba fail on error? # - # @option options [Numeric] exit_timeout + # @option opts [Numeric] :exit_timeout # Timeout for execution # - # @option options [Numeric] io_wait_timeout + # @option opts [Numeric] :io_wait_timeout # Timeout for IO - STDERR, STDOUT # def run_command_and_stop(cmd, opts = {}) diff --git a/lib/aruba/api/filesystem.rb b/lib/aruba/api/filesystem.rb index 6009b2645..8280a85a6 100644 --- a/lib/aruba/api/filesystem.rb +++ b/lib/aruba/api/filesystem.rb @@ -168,10 +168,7 @@ def touch(*args) # @param [String] destination # A file or directory name. If multiple sources are given the destination # needs to be a directory - # - # rubocop:disable Metrics/CyclomaticComplexity - # def copy(*source, destination) - def copy(*args) + def copy(*args) # rubocop:disable Metrics/CyclomaticComplexity args = args.flatten destination = args.pop source = args @@ -202,7 +199,6 @@ def copy(*args) self end - # rubocop:enable Metrics/CyclomaticComplexity # Move a file and/or directory # @@ -214,10 +210,7 @@ def copy(*args) # @param [String] destination # A file or directory name. If multiple sources are given the destination # needs to be a directory - # - # rubocop:disable Metrics/CyclomaticComplexity - # rubocop:disable Metrics/MethodLength - def move(*args) + def move(*args) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength args = args.flatten destination = args.pop source = args @@ -252,8 +245,6 @@ def move(*args) self end - # rubocop:enable Metrics/MethodLength - # rubocop:enable Metrics/CyclomaticComplexity # Create a file with the given size #