mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 19:41:42 +00:00
fix: actualizar la fecha del gemfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
bd3daaf8b8
commit
65011fb804
1 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue