Skip to content

Instantly share code, notes, and snippets.

@kpiwko
Created January 13, 2015 13:10
Show Gist options
  • Save kpiwko/8b4958de6480c9cb74f5 to your computer and use it in GitHub Desktop.
Save kpiwko/8b4958de6480c9cb74f5 to your computer and use it in GitHub Desktop.
Spacelift provides/requires draft
def jbossInstallationTemplate = { File ups, File jbossHome, Map params ->
assert ups
assert jbossHome
assert params
...
}
def jbossInstallation = null;
installations {
ups {
postActions {
jbossInstallation = jbossInstallationTemplate.curry(ups.home)
foobarInstallation = foobarInstallationTemplate.curry(ups.home)
}
provides {
ups.home
}
}
local {
requires {
ups.home, installation.ups
}
postActions {
provide.params = [a:b, c:d]
provide.params! = []
provide.override.params = []
provide.jboss.home = "abc"
}
provides {
jbossHome, params
}
}
remote {
postActions {
jbossInstallation = jbossInstallation.curry(home, params)
}
}
}
tests {
myTest {
requires {
ups.home, jboss.home, params?, installation.ups
}
beforeSuite {
ups.home
jboss.home
}
execute {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment