Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
FileUtils doesn't have a `delete` method. Instead used `rm_f`.
  • Loading branch information
kdp-cloud committed Jun 25, 2024
1 parent 1ea11b2 commit 5cde9a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/templates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def populate_template
dir = Seek::Config.append_filestore_path('source_types')

if Dir.exist?(dir)
FileUtils.delete(Dir.glob("#{dir}/*"))
FileUtils.rm_f(Dir.glob("#{dir}/*"))
else
FileUtils.mkdir_p(dir)
end
Expand Down Expand Up @@ -172,7 +172,7 @@ def set_status
elsif File.exist?(resultfile)
res = File.read(resultfile)
@status = res
FileUtils.delete(resultfile)
FileUtils.rm_f(resultfile)
else
@status = 'not_started'
end
Expand All @@ -192,7 +192,7 @@ def running!
end

def done!
FileUtils.delete(lockfile)
FileUtils.rm_f(lockfile)
end

def running?
Expand Down

0 comments on commit 5cde9a2

Please sign in to comment.