Skip to content
Snippets Groups Projects
Commit 87d4fb4b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'main' into split-categories

parents 593b711f 88d666e3
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,13 @@ module Communication::Website::WithDeuxfleurs
return unless deuxfleurs_hosting?
if repository.blank?
deuxfleurs_create_github_repository
sleep 10
end
if deuxfleurs_identifier.blank?
deuxfleurs_create_bucket
sleep 10
deuxfleurs_generate_certificate
sleep 30
sleep 10
save
end
end
......@@ -52,11 +54,15 @@ module Communication::Website::WithDeuxfleurs
end
def deuxfleurs_default_identifier
"#{university.identifier}-#{to_s.parameterize}"
"#{to_s.parameterize}.#{university.identifier}.osuny.site"
end
def deuxfleurs_default_url
"https://#{deuxfleurs_default_identifier}"
end
def deuxfleurs_default_github_repository
"noesya/#{deuxfleurs_default_identifier}"
"noesya/#{university.identifier}-#{to_s.parameterize}"
end
def deuxfleurs_default_badge_url
......@@ -70,10 +76,6 @@ module Communication::Website::WithDeuxfleurs
# This first call will generate it
end
def deuxfleurs_default_url
deuxfleurs.default_url_for(deuxfleurs_default_identifier)
end
def deuxfleurs
@deuxfleurs ||= Deuxfleurs.new
end
......
......@@ -12,10 +12,6 @@ class Deuxfleurs
response.status == 200
end
def default_url_for(host)
"https://#{host}.web.deuxfleurs.fr"
end
protected
def client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment