5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 12:26:21 +00:00
panel/app/jobs/git_push_job.rb
jazzari ca9fa31cf1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: change git_sh method to accept array of params #12919
2023-07-20 15:31:38 -03:00

11 lines
No EOL
262 B
Ruby

# frozen_string_literal: true
# Permite pushear los cambios cada vez que se
# hacen commits en un sitio
class GitPushJob < ApplicationJob
# @param :site [Site]
# @return [nil]
def perform(site)
site.repository.push if site.repository.origin
end
end