@@ -102,8 +102,7 @@ def cleanup
102
102
# See if +path+ exists on the remote system and is a regular file
103
103
#
104
104
# @param path [String] Remote filename to check
105
- # @return [TrueClass] If the file exists
106
- # @return [FalseClass] If the file doesn't exist
105
+ # @return [Boolean] True if the file exists, otherwise false.
107
106
def file_dropper_file_exist? ( session , path )
108
107
if session . platform =~ /win/
109
108
normalized = file_dropper_win_file ( path )
@@ -134,8 +133,7 @@ def file_dropper_file_exist?(session, path)
134
133
# Sends a file deletion command to the remote +session+
135
134
#
136
135
# @param [String] file The file to delete
137
- # @return [TrueClass] the delete command has been executed in the remote machine
138
- # @return [FalseClass] otherwise
136
+ # @return [Boolean] True if the delete command has been executed in the remote machine, otherwise false.
139
137
def file_dropper_delete ( session , file )
140
138
win_file = file_dropper_win_file ( file )
141
139
@@ -172,9 +170,7 @@ def file_dropper_delete(session, file)
172
170
# Checks if a file has been deleted by the current job
173
171
#
174
172
# @param [String] file The file to check
175
- # @param [TrueClass] exists_before Indicates if the file existed before the deletion
176
- # @return [TrueClass] if the file has been deleted or it cannot resolve
177
- # @return [FalseClass] if the file hasn't been deleted
173
+ # @return [Boolean] If the file has been deleted, otherwise false.
178
174
def file_dropper_deleted? ( session , file , exists_before )
179
175
if exists_before && file_dropper_file_exist? ( session , file )
180
176
print_error ( "Unable to delete #{ file } " )
0 commit comments