Created
January 13, 2015 13:10
-
-
Save kpiwko/8b4958de6480c9cb74f5 to your computer and use it in GitHub Desktop.
Spacelift provides/requires draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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