mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 16:36:22 +00:00
11 lines
262 B
Ruby
11 lines
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
|