simple-deployer
Advanced tools
Comparing version 0.1.1 to 0.1.2
91
index.js
@@ -1,90 +0,1 @@ | ||
const Deployer = require('./lib/Deployer') | ||
var config = { | ||
host: 'rdi.eventosbrinson.com', | ||
port: 22, | ||
username: 'deploy', | ||
showDeployMessages: true, | ||
privateKeyPath: undefined, | ||
password: '12345678' | ||
} | ||
var sd = new Deployer(config) | ||
var commands = [] | ||
commands.push ({ | ||
header: 'cosaasdasdsadsas' | ||
}) | ||
commands.push ({ | ||
header: 'cosas' | ||
}) | ||
commands.push ({ | ||
header: 'cosas' | ||
}) | ||
commands.push ({ | ||
command: 'cat d', | ||
local: true, | ||
continueOnErrorCode: true, | ||
message: 'This command makes you happy' | ||
}) | ||
commands.push ({ | ||
command: 'ls', | ||
options: [], | ||
local: true, | ||
showResults: true | ||
}) | ||
commands.push ({ | ||
dynamic: function(lastResult, code) { | ||
const files = lastResult.split('\n') | ||
return ['cat', [files[0]]] | ||
}, | ||
local: true, | ||
showResults: false | ||
}) | ||
commands.push ({ | ||
header: 'Cosas de git que se ven chidas' | ||
}) | ||
var a = 15 | ||
while(a--) { | ||
commands.push ({ | ||
header: 'Cosas de git que se ven chidas' | ||
}) | ||
commands.push ({ | ||
command: 'ls', | ||
options: [], | ||
local: false | ||
}) | ||
commands.push ({ | ||
dynamic: function(lastResult, code) { | ||
const files = lastResult.split('\n') | ||
return ['cat', [files[0]]] | ||
}, | ||
local: false, | ||
continueOnErrorCode: true, | ||
showResults: false | ||
}) | ||
commands.push ({ | ||
command: 'cat d', | ||
local: true, | ||
continueOnErrorCode: true, | ||
message: 'This command makes you happy' | ||
}) | ||
} | ||
commands.push ({ | ||
header: 'cosas' | ||
}) | ||
sd.deploy(commands) | ||
module.exports = require('./lib/Deployer') |
{ | ||
"name": "simple-deployer", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Commans excecuter that can be use to do a simple deploy or other simple server tasks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7301
170