Move ruby testing to GH Actions & fix linting

This commit is contained in:
Gene Liverman 2022-06-25 14:49:22 -04:00
parent b6c4139be4
commit d2efca732c
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6
7 changed files with 29 additions and 30 deletions

View file

@ -19,10 +19,11 @@ end
def rename_file(source, destination, action)
puts "#{destination} exists, renaming to #{destination}.predots"
File.rename(destination, "#{destination}.predots")
if action.eql?('link')
case action
when 'link'
puts "Linking #{destination} to #{source}"
File.symlink(source, destination)
elsif action.eql?('copy')
when 'copy'
puts "Copying #{destination} to #{source}"
FileUtils.cp_r(source, destination)
else