diplo

0.0.4 • Public • Published

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

};

Dependents (0)

Package Sidebar

Install

npm i diplo

Weekly Downloads

1

Version

0.0.4

License

ISC

Last publish

Collaborators

  • jhatch