<div dir="ltr">Hi all,<br><br>I have written about "sky" here:<br><br><a href="http://blogs.perl.org/users/shlomi_fish/2013/06/the-sky-command-line-application-and-other-recent-hacktivity.html">http://blogs.perl.org/users/shlomi_fish/2013/06/the-sky-command-line-application-and-other-recent-hacktivity.html</a><br>
<br>You can find it at:<br><br>* <a href="http://www.shlomifish.org/open-source/projects/sky/">http://www.shlomifish.org/open-source/projects/sky/</a><br><br>* <a href="https://metacpan.org/release/App-Sky">https://metacpan.org/release/App-Sky</a><br>
<br>Here is the description:<br><br><QUOTE><br>If you have a good web hosting, you may have run into a pattern, where you are<br>uploading files to it for other people to download and need to find the URL<br>where they were uploaded to. Thing is - recalling the exact Rsync (= a file<br>
uploader) command and then going to the web browser to access the URL is<br>time-consuming, and repetitive. sky, written in Perl using Moo and available on<br>CPAN, aims to fix all that.<br><br>Here is a sample invocation from the web-site:<br>
<br>shlomif@telaviv1:~$ sky up /home/music/Music/mp3s/Thierry\ de\ Massia/Elements\<br>essentiels/01\ -\ Le\ vent.ogg X11 forwarding request failed on channel 0<br>sending incremental file list<br>01 - Le vent.ogg<br> 5271287 100% 147.24kB/s 0:00:34 (xfer#1, to-check=0/1)<br>
<br>sent 5272011 bytes received 31 bytes 87141.19 bytes/sec<br>total size is 5271287 speedup is 1.00<br>Got URL:<br><a href="http://www.shlomifish.org/Files/files/music/mp3-ogg/01%20-%20Le%20vent.ogg">http://www.shlomifish.org/Files/files/music/mp3-ogg/01%20-%20Le%20vent.ogg</a><br>
shlomif@telaviv1:~$<br><br>As you can see, we just specified the file, and it divined the rsync command<br>and gave us the resultant URL. Convenient.<br><br>sky requires a configuration file in ~/.config/Perl/App-Sky/app_sky_conf.yml<br>
such as this one:<br><br>---<br>default_site: homepage<br>sites:<br> homepage:<br> base_upload_cmd:<br> - 'rsync'<br> - '-a'<br> - '-v'<br> - '--progress'<br>
- '--inplace'<br> dest_upload_prefix: 'hostgator:public_html/'<br> dest_upload_url_prefix: '<a href="http://www.shlomifish.org/">http://www.shlomifish.org/</a>'<br> sections:<br>
code:<br> basename_re: '\.(?:pl|pm|c|py)\z'<br> target_dir: 'Files/files/code/'<br> music:<br> basename_re: '\.(?:mp3|ogg|wav|aac|m4a)\z'<br>
target_dir: 'Files/files/music/mp3-ogg/'<br> video:<br> basename_re: '\.(?:webm|flv|avi|mpeg|mpg|mp4|ogv)\z'<br> target_dir: 'Files/files/video/'<br>
<br>And it uses the basename_re to figure out where to upload it later. The next<br>features I would like to see added are an ability to specify the target<br>directory or alternatively override the target section, and naturally - better<br>
documentation. But I'm happy with what I have so far.<br></QUOTE><br><br>Sky is open-source under the MIT/X11 licence ( =<br><a href="http://en.wikipedia.org/wiki/MIT_License">http://en.wikipedia.org/wiki/MIT_License</a> ).<br>
<br>Regards,<br><br> Shlomi Fish<br clear="all"><br>-- <br>------------------------------------------<br>Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br><br>Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much.<br>
<br>Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br>
</div>