Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Repair YARD annotations #707

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/aruba/api/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand Down
13 changes: 2 additions & 11 deletions lib/aruba/api/filesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -202,7 +199,6 @@ def copy(*args)

self
end
# rubocop:enable Metrics/CyclomaticComplexity

# Move a file and/or directory
#
Expand All @@ -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
Expand Down Expand Up @@ -252,8 +245,6 @@ def move(*args)

self
end
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/CyclomaticComplexity

# Create a file with the given size
#
Expand Down