Skip to content

codefoster/candyman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This code is deprecated. It's old and there are many better modern offerings such as ansible.

Overview

I wrote candyman to deploy code to one or more Linux devices, but it's really just a couple of very helpful functions that run commands locally or remotely (on the target Linux machine) and return a promise - allowing you to string your execution together into a sensible workflow.

Because it returns a promise, you can use it with gulp. So you can create a gulpfile.js such as below that uses candyman to deploy app.js and package.json (the candyman 'deploy' function is currently hard coded to just deploy app.js and package.json) to the configured device(s).

var gulp = require('gulp');
var config = require('./gulpconfig');
var Candyman = require('candyman');

var candyman = new Candyman({
  devicename:'mydevice',
  hostname:'mydevice.local'
});

gulp.task('deploy', function () {
    return candyman.deploy();
});

About

Deploy to Linux devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published