mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:06:23 +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 |