0.0.4 • Published 10 years ago

diplo v0.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

diplo

A code deployment utility built on NodeJS.

See the docco annotated source code https://rawgit.com/jhatch/diplo/ramda/docs/index.html

Diplo

  1. $compile your diplo config into bash
  2. $save it to a file as a regular runnable bash script
  3. $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!"
  }

};