mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 10:26:22 +00:00
13 lines
280 B
Ruby
13 lines
280 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 = site
|
|
|
|
site.repository.push if site.repository.origin
|
|
end
|
|
end
|