5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 19:11:42 +00:00

fix: actualizar la fecha del gemfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-09-26 14:58:24 -03:00
parent bd3daaf8b8
commit 65011fb804
No known key found for this signature in database

View file

@ -568,6 +568,7 @@ class Site < ApplicationRecord
if !gems_installed? || gemfile_updated? || gemfile_lock_updated? if !gems_installed? || gemfile_updated? || gemfile_lock_updated?
deploy_local.bundle deploy_local.bundle
touch touch
File.touch(gemfile_path)
end end
end end
@ -588,7 +589,11 @@ class Site < ApplicationRecord
# Detecta si el Gemfile fue modificado # Detecta si el Gemfile fue modificado
def gemfile_updated? def gemfile_updated?
updated_at < File.mtime(File.join(path, 'Gemfile')) updated_at < File.mtime(gemfile_path)
end
def gemfile_path
@gemfile_path ||= File.join(path, 'Gemfile')
end end
# @return [String] # @return [String]