automaton-build.project.impl.clever-cloud-deploy

Code here is regarding all interactions with clever cloud. Design decision: Interaction with clever cloud is by using git.

Alternatively it could be done by using clever CLI, but currently we don’t need any features that can’t be done by simply manipulating the repository in the git. Which is a simpler option in terms of complexity (no need for API to check), while still being flexible (a lot of options to manipulate in git). Additionally this doesn’t require to install the clever cloud cli.

clone-repo

(clone-repo target-dir uri repo-name)

Clones clever repo from uri to a target-dir, repo will be stored as repo-name. Returns the path to the repository.

deploy

(deploy dir msg)(deploy dir)

Deploys to clever-cloud, returns true if succesfull. Params: * dir where clever git repository that should be deployed resides. * msg (optional) a commit message for the deploy