meep-egg

1.1.0 • Public • Published

Egg

The egg is a hatchable little package that can be used on a nest to build and deploy software and apps. It supports authentication, task running, and simple testing.

You can also use meep-egg-layer to generate an Egg.

A basic usage example is provided below.

Usage

var Egg = require('meep-egg');
var egg = new Egg({
  server: {
    host: '192.0.0.1',
    user: 'root',
    password: 'password',
    port: 22
  },
  tasks: [
    'curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -',
    'apt-get install -y nodejs'
  ],
  test: true
});
 
egg.hatch().expect('node -v').match(new RegExp(/v4\..*\..*/), (res)=>{
  if(typeof(res) !== 'null') {
    console.log(`Tests passed, Node version ${res[0]} installed.`);
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i meep-egg

Weekly Downloads

2

Version

1.1.0

License

BSD-3-Clause

Last publish

Collaborators

  • mdwisniewski