19 lines
237 B
Ruby
19 lines
237 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# Genera una versión onion
|
||
|
class DeployHiddenService < DeployWww
|
||
|
def deploy
|
||
|
return true if fqdn.blank?
|
||
|
|
||
|
super
|
||
|
end
|
||
|
|
||
|
def fqdn
|
||
|
values[:onion]
|
||
|
end
|
||
|
|
||
|
def url
|
||
|
'http://' + fqdn
|
||
|
end
|
||
|
end
|