node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

diplo

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!"
  }

};