mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 17:06:22 +00:00
13 lines
No EOL
351 B
Ruby
13 lines
No EOL
351 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Permite traer los cambios desde webhooks
|
|
|
|
class GitPullJob < ApplicationJob
|
|
# @param :site [Site]
|
|
# @param :usuarie [Usuarie]
|
|
# @param :message [String]
|
|
# @return [nil]
|
|
def perform(site, usuarie, message)
|
|
site.repository.merge(usuarie, message) if site.repository.fetch&.positive?
|
|
end
|
|
end |