Class DeployedSiteReconciler
- All Implemented Interfaces:
SiteReconciler
Subsumes the retired ike:deploy-site-{draft,publish} goals
(IKE-Network/ike-issues#398). The deployed site lives at
https://ike.network/<artifactId>/ (served from the project's
own gh-pages branch) with a versioned mirror at
.../<artifactId>/<version>/ and a .../<artifactId>/latest/
alias.
Detect: probe https://ike.network/<artifactId>/ and
inspect the rendered HTML for the deployed version. If the version
tag is missing or differs from SiteContext.projectVersion,
report drift.
Apply: run mvnw site site:stage and force-push the
resulting target/staging/ to the project repo's
gh-pages branch via
ReleaseSupport.publishProjectSiteToGhPages(Path, String, Log, String, String). This is the same
publish path the retired DeploySiteDraftMojo used for
siteType=release after #304 retired the scpexe mirror.
Uninstall: this reconciler does not invert. Removing a
deployed site is handled by the gh-pages branch being deleted at the
GitHub repo level — not something the build can do safely. The
paired StaleSiteCleanupReconciler handles legacy scpexe
cleanup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(SiteContext ctx) Apply reconciliation.detect(SiteContext ctx) Inspect deployed site state and report any drift this reconciler would correct.Human-readable name of the dimension this reconciler owns.The Maven property name (without the-Dprefix) that opts out of this reconciler's apply pass.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SiteReconciler
uninstall
-
Constructor Details
-
DeployedSiteReconciler
public DeployedSiteReconciler()Creates this reconciler instance.
-
-
Method Details
-
dimension
Description copied from interface:SiteReconcilerHuman-readable name of the dimension this reconciler owns. Used as the heading insite-draftoutput.- Specified by:
dimensionin interfaceSiteReconciler- Returns:
- the dimension label, e.g. "Deployed site version"
-
optOutFlag
Description copied from interface:SiteReconcilerThe Maven property name (without the-Dprefix) that opts out of this reconciler's apply pass. Setting the property to"false"skips this dimension on a givensite-publishinvocation.- Specified by:
optOutFlagin interfaceSiteReconciler- Returns:
- the opt-out flag name, e.g.
"updateSite"
-
detect
Description copied from interface:SiteReconcilerInspect deployed site state and report any drift this reconciler would correct. Read-only — must not mutate any remote state.- Specified by:
detectin interfaceSiteReconciler- Parameters:
ctx- the per-repo site context- Returns:
- drift report;
SiteDriftReport.noDrift(String)if nothing to do
-
apply
Description copied from interface:SiteReconcilerApply reconciliation. Caller is responsible for checkingSiteReconcilerOptions.isOptedOut(String)before invoking; implementations may also re-check defensively.- Specified by:
applyin interfaceSiteReconciler- Parameters:
ctx- the per-repo site context
-