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

config

parent cb9dc2a5
No related branches found
No related tags found
No related merge requests found
# == Schema Information
#
# Table name: communication_websites
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# access_token :string
# autoupdate_theme :boolean default(TRUE)
# deployment_status_badge :text
# deuxfleurs_hosting :boolean default(TRUE)
# deuxfleurs_identifier :string
# feature_agenda :boolean default(FALSE)
# feature_posts :boolean default(TRUE)
# git_branch :string
# git_endpoint :string
# git_provider :integer default("github")
# in_production :boolean default(FALSE)
# name :string
# plausible_url :string
# repository :string
# social_facebook :string
# social_instagram :string
# social_linkedin :string
# social_mastodon :string
# social_peertube :string
# social_tiktok :string
# social_vimeo :string
# social_x :string
# social_youtube :string
# style :text
# style_updated_at :date
# theme_version :string default("NA")
# url :string
# created_at :datetime not null
# updated_at :datetime not null
# about_id :uuid indexed => [about_type]
# default_language_id :uuid not null, indexed
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_websites_on_about (about_type,about_id)
# index_communication_websites_on_default_language_id (default_language_id)
# index_communication_websites_on_university_id (university_id)
#
# Foreign Keys
#
# fk_rails_2b6d929310 (default_language_id => languages.id)
# fk_rails_bb6a496c08 (university_id => universities.id)
#
class Communication::Website::Configs::DeuxfleursWorkflow < Communication::Website::Configs::Base
def self.polymorphic_name
'Communication::Website::Configs::DeuxfleursWorkflow'
end
def git_path(website)
".github/workflows/deuxfleurs.yml"
end
def template_static
"admin/communication/websites/configs/deuxfleurs_workflow/static"
end
end
......@@ -8,8 +8,9 @@ module Communication::Website::WithConfigs
config_default_languages,
config_default_permalinks,
config_development_config,
config_production_config
]
config_production_config,
config_deuxfleurs_workflow
].compact
end
def config_default_languages
......@@ -28,5 +29,10 @@ module Communication::Website::WithConfigs
@config_production_config ||= Communication::Website::Configs::ProductionConfig.find(id)
end
def config_deuxfleurs_workflow
return unless deuxfleurs_hosting
@config_deuxfleurs_workflow ||= Communication::Website::Configs::DeuxfleursWorkflow.find(id)
end
end
end
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