[Catalyst-commits] r6910 - in
trunk/Catalyst-Plugin-ConfigLoader-Remote: .
lib/Catalyst/Plugin/ConfigLoader
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Mon Sep 17 19:42:02 GMT 2007
Author: jshirley
Date: 2007-09-17 19:42:02 +0100 (Mon, 17 Sep 2007)
New Revision: 6910
Added:
trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST.SKIP
Modified:
trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST
trunk/Catalyst-Plugin-ConfigLoader-Remote/Makefile.PL
trunk/Catalyst-Plugin-ConfigLoader-Remote/README
trunk/Catalyst-Plugin-ConfigLoader-Remote/lib/Catalyst/Plugin/ConfigLoader/Remote.pm
Log:
Updates to prep the package for CPAN
Modified: trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST 2007-09-17 16:25:30 UTC (rev 6909)
+++ trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST 2007-09-17 18:42:02 UTC (rev 6910)
@@ -1,10 +1,23 @@
Changes
+inc/Module/AutoInstall.pm
+inc/Module/Install.pm
+inc/Module/Install/AutoInstall.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Include.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
+lib/Catalyst/Plugin/ConfigLoader/Remote.pm
+Makefile.PL
MANIFEST
-META.yml # Will be created by "make dist"
-Makefile.PL
+META.yml # Will be created by "make dist"
README
-lib/Catalyst/Plugin/ConfigLoader/Remote.pm
t/00-load.t
-t/boilerplate.t
+t/lib/TestApp.pm
+t/lib/TestApp/root/static/config.yml
+t/live.t
t/pod-coverage.t
t/pod.t
Added: trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST.SKIP
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST.SKIP (rev 0)
+++ trunk/Catalyst-Plugin-ConfigLoader-Remote/MANIFEST.SKIP 2007-09-17 18:42:02 UTC (rev 6910)
@@ -0,0 +1,29 @@
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
+
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+
+# Avoid temp and backup files.
+~$
+\.tmp$
+\.old$
+\.bak$
+\#$
+\b\.#
+\.DS_Store$
+
+# No tarballs!
+\.gz$
Modified: trunk/Catalyst-Plugin-ConfigLoader-Remote/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader-Remote/Makefile.PL 2007-09-17 16:25:30 UTC (rev 6909)
+++ trunk/Catalyst-Plugin-ConfigLoader-Remote/Makefile.PL 2007-09-17 18:42:02 UTC (rev 6910)
@@ -1,6 +1,6 @@
use inc::Module::Install;
-name 'Catalyst::Plugin::ConfigLoader::Remote';
+name 'Catalyst-Plugin-ConfigLoader-Remote';
all_from 'lib/Catalyst/Plugin/ConfigLoader/Remote.pm';
requires 'Catalyst::Plugin::ConfigLoader';
Modified: trunk/Catalyst-Plugin-ConfigLoader-Remote/README
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader-Remote/README 2007-09-17 16:25:30 UTC (rev 6909)
+++ trunk/Catalyst-Plugin-ConfigLoader-Remote/README 2007-09-17 18:42:02 UTC (rev 6910)
@@ -1,16 +1,5 @@
Catalyst-Plugin-ConfigLoader-Remote
-The README is used to introduce the module and provide instructions on
-how to install the module, any machine dependencies it may have (for
-example C compilers and installed libraries) and any other information
-that should be provided before the module is installed.
-
-A README file is required for CPAN modules since CPAN extracts the README
-file from a module distribution so that people browsing the archive
-can use it get an idea of the modules uses. It is usually a good idea
-to provide version information here so that people can decide whether
-fixes for the module are worth downloading.
-
INSTALLATION
To install this module, run the following commands:
@@ -23,7 +12,8 @@
SUPPORT AND DOCUMENTATION
-After installing, you can find documentation for this module with the perldoc command.
+After installing, you can find documentation for this module with the perldoc
+command.
perldoc Catalyst::Plugin::ConfigLoader::Remote
Modified: trunk/Catalyst-Plugin-ConfigLoader-Remote/lib/Catalyst/Plugin/ConfigLoader/Remote.pm
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader-Remote/lib/Catalyst/Plugin/ConfigLoader/Remote.pm 2007-09-17 16:25:30 UTC (rev 6909)
+++ trunk/Catalyst-Plugin-ConfigLoader-Remote/lib/Catalyst/Plugin/ConfigLoader/Remote.pm 2007-09-17 18:42:02 UTC (rev 6910)
@@ -21,19 +21,33 @@
=head1 SYNOPSIS
-Quick summary of what the module does.
+This module provides support for fetching remote configuration files over HTTP,
+FTP or other remote methods.
-Perhaps a little code snippet.
+It will fetch any blessed URI object in the C<files> config entry for the
+package via L<File::Fetch>
- use Catalyst::Plugin::ConfigLoader::Remote;
+ package MyApp;
- my $foo = Catalyst::Plugin::ConfigLoader::Remote->new();
- ...
+ use Catalyst qw/ConfigLoader::Remote/;
+ use URI;
+
+ __PACKAGE__->config(
+ files => [
+ URI->new("https://secure.example.com/config/basic.yml"),
+ URI->new("https://secure.example.com/config/database.conf"),
+ ]
+ );
+
=head1 METHODS
=head2 find_files
+find_files will download each file to a temporary directory that is purged on
+program exit. It is then passed to L<Catalyst::Plugin::ConfigLoader> for
+actual configuration loading and processing.
+
=cut
sub find_files {
@@ -66,6 +80,8 @@
J. Shirley, C<< <jshirley at gmail.com> >>
+Eden Cardim
+
=head1 BUGS
Please report any bugs or feature requests to
More information about the Catalyst-commits
mailing list