File Coverage

blib/lib/App/Sky.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package App::Sky;
2             $App::Sky::VERSION = '0.4.2';
3 1     1   1186 use strict;
  1         2  
  1         29  
4 1     1   6 use warnings;
  1         2  
  1         35  
5              
6              
7             1;
8              
9             __END__
10              
11             =pod
12              
13             =encoding UTF-8
14              
15             =head1 NAME
16              
17             App::Sky - wrapper to rsync/etc. to upload files to a remote server and give
18             download links.
19              
20             =head1 VERSION
21              
22             version 0.4.2
23              
24             =head1 SYNOPSIS
25              
26             Put something like this in F<~/.config/Perl/App-Sky/app_sky_conf.yml> :
27              
28             ---
29             default_site: homepage
30             sites:
31             homepage:
32             base_upload_cmd:
33             - 'rsync'
34             - '-a'
35             - '-v'
36             - '--progress'
37             - '--inplace'
38             dest_upload_prefix: 'hostgator:public_html/'
39             dest_upload_url_prefix: 'http://www.shlomifish.org/'
40             sections:
41             code:
42             basename_re: '\.(?:pl|pm|c|py)\z'
43             target_dir: 'Files/files/code/'
44             music:
45             basename_re: '\.(?:mp3|ogg|wav|aac|m4a)\z'
46             target_dir: 'Files/files/music/mp3-ogg/'
47             video:
48             basename_re: '\.(?:webm|flv|avi|mpeg|mpg|mp4|ogv)\z'
49             target_dir: 'Files/files/video/'
50              
51             Then you can use commands such as:
52              
53             $ sky up /path/to/my-music-file.mp3
54              
55             And get in return a URL to where it was uploaded.
56              
57             =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
58              
59             =head1 SUPPORT
60              
61             =head2 Websites
62              
63             The following websites have more information about this module, and may be of help to you. As always,
64             in addition to those websites please use your favorite search engine to discover more resources.
65              
66             =over 4
67              
68             =item *
69              
70             MetaCPAN
71              
72             A modern, open-source CPAN search engine, useful to view POD in HTML format.
73              
74             L<https://metacpan.org/release/App-Sky>
75              
76             =item *
77              
78             RT: CPAN's Bug Tracker
79              
80             The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
81              
82             L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-Sky>
83              
84             =item *
85              
86             CPANTS
87              
88             The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
89              
90             L<http://cpants.cpanauthors.org/dist/App-Sky>
91              
92             =item *
93              
94             CPAN Testers
95              
96             The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
97              
98             L<http://www.cpantesters.org/distro/A/App-Sky>
99              
100             =item *
101              
102             CPAN Testers Matrix
103              
104             The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
105              
106             L<http://matrix.cpantesters.org/?dist=App-Sky>
107              
108             =item *
109              
110             CPAN Testers Dependencies
111              
112             The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
113              
114             L<http://deps.cpantesters.org/?module=App::Sky>
115              
116             =back
117              
118             =head2 Bugs / Feature Requests
119              
120             Please report any bugs or feature requests by email to C<bug-app-sky at rt.cpan.org>, or through
121             the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=App-Sky>. You will be automatically notified of any
122             progress on the request by the system.
123              
124             =head2 Source Code
125              
126             The code is open to the world, and available for you to hack on. Please feel free to browse it and play
127             with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
128             from your repository :)
129              
130             L<https://github.com/shlomif/Sky-uploader>
131              
132             git clone git://github.com/shlomif/Sky-uploader.git
133              
134             =head1 AUTHOR
135              
136             Shlomi Fish <shlomif@cpan.org>
137              
138             =head1 BUGS
139              
140             Please report any bugs or feature requests on the bugtracker website
141             L<https://github.com/shlomif/Sky-uploader/issues>
142              
143             When submitting a bug or request, please include a test-file or a
144             patch to an existing test-file that illustrates the bug or desired
145             feature.
146              
147             =head1 COPYRIGHT AND LICENSE
148              
149             This software is Copyright (c) 2013 by Shlomi Fish.
150              
151             This is free software, licensed under:
152              
153             The MIT (X11) License
154              
155             =cut