Committed by cron-git from Yimian-PC

master
iotcat 4 years ago
parent d14d9239bf
commit 4c25cf8933
  1. 2
      index.js
  2. 2
      package.json
  3. 2
      test.js

@ -21,6 +21,8 @@ module.exports = function(o_params){
/* merge params */
Object.assign(o, o_params);
/* log dir */
console.log(new Date() + ' - cron-git: At dir::' + o.dir);
/* modules import */
const cron = require('node-schedule');

@ -1,6 +1,6 @@
{
"name": "cron-git",
"version": "1.0.2",
"version": "1.0.3",
"description": "crontab git task",
"main": "index.js",
"scripts": {

@ -1,4 +1,4 @@
const crongit = require('./index.js')();
//crongit.pull({}, ()=>{console.log('good')}, ()=>{console.log('bed')});
crongit.schedule("10 * * * * *", ()=>console.log('test ok!!!\nuse Ctrl+C to exit!!'), ()=>console.log('pull err err err err!!!!'));
crongit.schedule("*/10 * * * * *", ()=>console.log('test ok!!!\nuse Ctrl+C to exit!!'), ()=>console.log('pull err err err err!!!!'));

Loading…
Cancel
Save