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