https://github.com/codefoster/candyman
Deploy to Linux devices
https://github.com/codefoster/candyman
Last synced: 5 months ago
JSON representation
Deploy to Linux devices
- Host: GitHub
- URL: https://github.com/codefoster/candyman
- Owner: codefoster
- License: apache-2.0
- Created: 2015-03-03T19:50:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T21:00:51.000Z (over 6 years ago)
- Last Synced: 2025-09-20T10:59:00.588Z (9 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> **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).
```javascript
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();
});
```