0.0.4 • Published 10 years ago
diplo v0.0.4
diplo
A code deployment utility built on NodeJS.
See the docco
annotated source code https://rawgit.com/jhatch/diplo/ramda/docs/index.html
$compile
your diplo config into bash$save
it to a file as a regular runnable bash script$execute
it with various transports like ssh'ing to a remote host
Example diplo script:
module.exports = {
transport: {
ssh2: {
host: "107.170.73.246",
user: "root",
privateKey: "/Users/johnhatcher/.ssh/id_rsa",
passphrase: 'password1'
}
},
run: {
set: {
var1: "you win"
},
run: [
"echo Hello World",
"echo $var1"
]
},
failure: {
run: "echo awwwww bummmmmer bro"
},
success: {
run: "echo wooooohoooooo!"
}
};