Egg::Plugin::rc - Loading the resource code file for Egg is supported.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Plugin::rc - Loading the resource code file for Egg is supported.

SYNOPSIS

Top

  use Egg qw/ rc /;

  my $rc= $e->load_rc;

DESCRIPTION

Top

This plugin supports loading the resource code file for Egg.

Please prepare the resource code file in the following places.

  ./.egg_releaserc
  /project_root/.egg_releaserc
  ~/.egg_releaserc
  /etc/egg_releaserc

* The content of the resource code file is a thing that is the YAML form for HASH.

If file name is changed, environment variable EGG_RC_NAME is set. Default is egg_releaserc.

It tries to read the EGG_RC_NAME name like the miso when it evaluates under the control of '/etc'. EGG_RC_NAME that puts '.' on the head is read usually.

The key used with Egg::Helper is as follows.

* author ..... Writer's data.
* headcopy ..... It inserts it in the header of the generation module.
* license ..... License form. Perl and GPL, etc.

METHODS

Top

load_rc ([ATTR_HASH])

If the rc file is found, YAML::LoadFile. Goes and returns the result.

PATH can be set in 'current_dir' of ATTR_HASH and the rc file of an arbitrary place be read.

  my $rc= $e->load_rc('/path/to');

SEE ALSO

Top

Egg::Release, Egg::YAML,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.