mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-27 04:46:21 +00:00
Merge branch 'deadlock' into panel.sutty.nl
This commit is contained in:
commit
78780ebe85
7 changed files with 8 additions and 8 deletions
|
@ -11,7 +11,7 @@ class Deploy < ApplicationRecord
|
|||
belongs_to :site
|
||||
has_many :build_stats, dependent: :destroy
|
||||
|
||||
def deploy
|
||||
def deploy(**)
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ class DeployAlternativeDomain < Deploy
|
|||
store :values, accessors: %i[hostname], coder: JSON
|
||||
|
||||
# Generar un link simbólico del sitio principal al alternativo
|
||||
def deploy
|
||||
def deploy(**)
|
||||
File.symlink?(destination) ||
|
||||
File.symlink(site.hostname, destination).zero?
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Genera una versión onion
|
||||
class DeployHiddenService < DeployWww
|
||||
def deploy
|
||||
def deploy(**)
|
||||
return true if fqdn.blank?
|
||||
|
||||
super
|
||||
|
|
|
@ -5,7 +5,7 @@ class DeployLocalizedDomain < DeployAlternativeDomain
|
|||
store :values, accessors: %i[hostname locale], coder: JSON
|
||||
|
||||
# Generar un link simbólico del sitio principal al alternativo
|
||||
def deploy
|
||||
def deploy(**)
|
||||
File.symlink?(destination) ||
|
||||
File.symlink(File.join(site.hostname, locale), destination).zero?
|
||||
end
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
# jekyll-private-data
|
||||
class DeployPrivate < DeployLocal
|
||||
# No es necesario volver a instalar dependencias
|
||||
def deploy
|
||||
jekyll_build
|
||||
def deploy(output: false)
|
||||
jekyll_build(output: output)
|
||||
end
|
||||
|
||||
# Hacer el deploy a un directorio privado
|
||||
|
|
|
@ -6,7 +6,7 @@ class DeployWww < Deploy
|
|||
|
||||
before_destroy :remove_destination!
|
||||
|
||||
def deploy
|
||||
def deploy(**)
|
||||
File.symlink?(destination) ||
|
||||
File.symlink(site.hostname, destination).zero?
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ class DeployZip < Deploy
|
|||
# y generar un zip accesible públicamente.
|
||||
#
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def deploy
|
||||
def deploy(**)
|
||||
FileUtils.rm_f path
|
||||
|
||||
time_start
|
||||
|
|
Loading…
Reference in a new issue