【文件属性】:
文件名称:syncia:像Dropbox一样的Ruby同步文件,带有Ruby代码
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-18 14:48:01
Ruby
辛西亚
Ruby的文件同步服务。 程序是:
1. Start as a daemon process
2. Start to watch a designated folder
3. If updated, execute rsync command
4. Synchronize your files to remote host
5. Endup if it received a signal.
在同步文件之前,您必须将公钥注册到远程主机,如下所示:
$ cat ~/.ssh/id_rsa.pub | shh your_remote_host 'cat >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keys'
安装
将此行添加到您的应用程序的Gemfile中:
gem 'syncia'
然后执行:
$ bu
【文件预览】:
syncia-master
----lib()
--------syncia.rb(2KB)
----Gemfile(91B)
----Rakefile(28B)
----.travis.yml(30B)
----syncia.gemspec(1KB)
----README.md(2KB)
----.gitignore(87B)
----bin()
--------console(331B)
--------setup(115B)