Skip to content

Commit

Permalink
Merge pull request #672 from koic/suppress_ruby27_warning
Browse files Browse the repository at this point in the history
Suppress keyward argument warnings in Ruby 2.7
  • Loading branch information
mvz authored Sep 14, 2019
2 parents f5aea56 + 41742c1 commit b48ea34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/aruba/platforms/unix_platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def mkdir(dir_name)
def rm(paths, options = {})
paths = Array(paths).map { |p| ::File.expand_path(p) }

FileUtils.rm_r(paths, options)
FileUtils.rm_r(paths, **options)
end

# Get current working directory
Expand All @@ -132,7 +132,7 @@ def chdir(dir_name, &block)

# Touch file, directory
def touch(args, options)
FileUtils.touch(args, options)
FileUtils.touch(args, **options)
end

# Copy file/directory
Expand All @@ -147,7 +147,7 @@ def mv(args, options)

# Change mode of file/directory
def chmod(mode, args, options)
FileUtils.chmod_R(mode, args, options)
FileUtils.chmod_R(mode, args, **options)
end

# Exists and is file
Expand Down

0 comments on commit b48ea34

Please sign in to comment.