edy

easy-deploy library & cli

edy = (E)asy-(D)eplo(Y)

edy is deploy library.

Install

npm install edy

Module

var edy = require('edy');
 
// send local_path to remote_path 
edy.run({
    source : '/home/test',
    target : 'ftp://id:pw@host.com/test'
}, {
    done : function(typeprotocolerrinfo) {
        console.log(info);
    }
})
 

Events

Command Line

Download

edy -p git https://host.com/test/test.git /home/dir/project

edy git+https://host.com/test/test.git /home/dir/project

edy git://host.com/test.test.git /home/dir/project

edy -p svn https://id:password@svn.com/project/trunk /home/dir/project

edy svn+https://id:password@svn.com/project/trunk /home/dir/project

edy svn://id:password@svn.com/project/trunk /home/dir/project

edy dropbox://email-id:password:api-key:api-secret@email-host/project /home/dir/project

connect string : dropbox://easylogic:xxxx:xxxxx:xxxx@github.com

edy ftp://id:password@host.com/project /home/dir/project

edy ftp://id:password@host.com/project/file.js /home/dir/project

edy sftp://id:password@host.com/project /home/dir/project

edy sftp://id:password@host.com/project/file.js /home/dir/project

edy scp://id:password@host.com/project/test.txt /home/dir/project

edy rsync://host.com/project/test.txt /home/dir/project

edy zip:///home/projects/edy /home/project/edy.tar.gz

edy zip:///home/projects/edy /home/project/edy.zip

edy zip:///home/projects/edy.tar.gz /home/projects/edy

edy zip:///home/projects/edy.zip /home/projects/edy

Upload

edy /home/dir/project dropbox://email-id:password:api-key:api-secret@email-host/project

edy /home/dir/files ftp://id:password@host.com/root/sub/

edy /home/dir/files sftp://id:password@host.com/root/sub/

edy /home/dir/files rsync://host.com/root/sub/

edy /home/dir/files scp://host.com/root/sub/

Copy

edy /home/dir/files /home/dir/samples

edy --sync /home/dir/project dropbox://email-id:password:api-key:api-secret@email-host/project edy --sync dropbox://email-id:password:api-key:api-secret@email-host/project /home/dir/project

edy --sync ftp://id:password@host.com/root/sub /home/dir/files edy --sync /home/dir/files ftp://id:password@host.com/root/sub/

edy --sync sftp://id:password@host.com/root/sub /home/dir/files edy --sync /home/dir/files sftp://id:password@host.com/root/sub/

edy --sync /home/dir/files /home/dir/samples

Remote command

edy -e "cd test; ./start.sh" ssh://id:password@host.com

Composite

edy ftp://id:password@host.com/project sftp://id:password@host.com/project2

edy --sync ftp://id:password@host.com/project sftp://id:password@host.com/project2

License

MIT License

Copyright (C) 2013 (cyberuls@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.