Skip to content

Instantly share code, notes, and snippets.

@bmoussaud
Last active December 13, 2017 10:29
Show Gist options
  • Save bmoussaud/0f3cc7aeb796e4f90593f839bf5039c5 to your computer and use it in GitHub Desktop.
Save bmoussaud/0f3cc7aeb796e4f90593f839bf5039c5 to your computer and use it in GitHub Desktop.
# script script/deploy-artifact.sh.ftl
echo "Deploying file on Unix"
mkdir -p ${deployed.container.home + "/context"}
cp ${deployed.file.path} ${deployed.container.home + "/context"}
echo "Done"
<type type="example.Server" extends="udm.BaseContainer"
description="Example server">
<property name="host" kind="ci"
referenced-type="overthere.Host" as-containment="true"/>
<property name="home" description="Home directory for the server"/>
</type>
<type type="example.ArtifactDeployed" extends="udm.BaseDeployedArtifact"
deployable-type="example.Artifact" container-type="example.Server"
description="Artifact that can be deployed to an example server">
<generate-deployable type="example.Artifact"
extends="udm.BaseDeployableFileArtifact"/>
</type>
<rule name="example.ArtifactDeployed.CREATE_MODIFY" scope="deployed">
<conditions>
<type>example.ArtifactDeployed</type>
<operation>CREATE</operation>
<operation>MODIFY</operation>
</conditions>
<steps>
<os-script>
<script>script/deploy-artifact</script>
</os-script>
</steps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment