<div dir="ltr">Hi all,<br><br>I have written about &quot;sky&quot; 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>&lt;QUOTE&gt;<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>            - &#39;rsync&#39;<br>            - &#39;-a&#39;<br>            - &#39;-v&#39;<br>            - &#39;--progress&#39;<br>
            - &#39;--inplace&#39;<br>        dest_upload_prefix: &#39;hostgator:public_html/&#39;<br>        dest_upload_url_prefix: &#39;<a href="http://www.shlomifish.org/">http://www.shlomifish.org/</a>&#39;<br>        sections:<br>
            code:<br>                basename_re: &#39;\.(?:pl|pm|c|py)\z&#39;<br>                target_dir: &#39;Files/files/code/&#39;<br>            music:<br>                basename_re: &#39;\.(?:mp3|ogg|wav|aac|m4a)\z&#39;<br>
                target_dir: &#39;Files/files/music/mp3-ogg/&#39;<br>            video:<br>                basename_re: &#39;\.(?:webm|flv|avi|mpeg|mpg|mp4|ogv)\z&#39;<br>                target_dir: &#39;Files/files/video/&#39;<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&#39;m happy with what I have so far.<br>&lt;/QUOTE&gt;<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&#39;s a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br>
</div>