GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PERLANET::TRAIT::YAMLCONFIG (3)

.ds Aq ’

NAME

Perlanet::Trait::YAMLConfig - configure Perlanet through a YAML configuration file

CONTENTS

SYNOPSIS



   package MyPerlanet;
   extends Perlanet;
   with Perlanet::Traits::YAMLConfig;

   my $perlanet = MyPerlanet->new_with_config(
     configfile => whatever.yml
   );

   $perlanet->run;



DESCRIPTION

Allows you to move the configuration of Perlanet to an external YAML configuration file.

    Example Configuration File



  title: planet test
  description: A Test Planet
  url: http://planet.example.com/
  author:
    name: Dave Cross
    email: dave@dave.org.uk
  entries: 20
  opml: opml.xml
  page:
    file: index.html
    template: index.tt
  feed:
    file: atom.xml
    format: Atom
  cache_dir: /tmp/feeds
  feeds:
    - url: http://blog.dave.org.uk/atom.xml
      title: Daves Blog
      web: http://blog.dave.org.uk/
    - url: http://use.perl.org/~davorg/journal/rss
      title: Daves use.perl Journal
      web: http://use.perl.org/~davorg/journal/
    - url: http://www.oreillynet.com/pub/feed/31?au=2607
      title: Dave on OReillynet
      web: http://www.oreillynet.com/pub/au/2607



METHODS

    THIRTY_DAYS

The default length of caching, if caching options are present in the configuration

    get_config_from_file

Extracts the configuration from a YAML file

AUTHOR

Oliver Charles, <oliver.g.charles@googlemail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2010 by Magnum Solutions Ltd.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PERLANET::TRAIT::YAMLCONFIG (3) 2016-04-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.