App-genconf

 view release on metacpan or  search on metacpan

CHANGES  view on Meta::CPAN

  Date : 2013-11-07 00:04:19 +0000

    Use File::Find to get templates

    Update formatting, update POD 

  Change: 1699835bebbd39c87551cca219dd6568cb9fa645
  Author: Matt Finkel <finkel.matt@gmail.com>
  Date : 2013-11-06 22:27:27 +0000

    Clean up POD, add Try::Tiny 

  Change: 64b4ffaace7bff091bf07bd38519dc247c79dad2
  Author: Matt Finkel <finkel.matt@gmail.com>
  Date : 2013-11-06 21:20:57 +0000

    Idiot 

------------------------------------------
version 0.005 at 2013-11-06 16:13:29 +0000
------------------------------------------

META.yml  view on Meta::CPAN

license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: 1.4
name: App-genconf
requires:
  File::Find: 1.23
  Getopt::Long: 2.42
  Path::Class: 0
  Template: 2.25
  Try::Tiny: 0.18
  strict: 0
  warnings: 0
version: 0.006
x_authority: cpan:FFFINKEL

Makefile.PL  view on Meta::CPAN

  "EXE_FILES" => [
    "bin/genconf"
  ],
  "LICENSE" => "perl",
  "NAME" => "App::genconf",
  "PREREQ_PM" => {
    "File::Find" => "1.23",
    "Getopt::Long" => "2.42",
    "Path::Class" => 0,
    "Template" => "2.25",
    "Try::Tiny" => "0.18",
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {},
  "VERSION" => "0.006",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "File::Find" => "1.23",
  "Getopt::Long" => "2.42",
  "Path::Class" => 0,
  "Template" => "2.25",
  "Try::Tiny" => "0.18",
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

README.pod  view on Meta::CPAN


#ABSTRACT: The world's simplest config file generator

use strict;
use warnings;

use File::Find;
use Getopt::Long qw/ GetOptions :config bundling /;
use Path::Class qw/ file /;
use Template;
use Try::Tiny;

=head1 NAME

App::genconf - The world's simplest config file generator

=head1 SYNOPSIS

  # Create a config template
  vi templates/config/myapp_local.yml

dist.ini  view on Meta::CPAN

author           = Matt Finkel <fffinkel@cpan.org>
license          = Perl_5
copyright_holder = Matt Finkel

[@FFFINKEL]

[Prereqs]
File::Find = 1.23
Getopt::Long = 2.42
Template = 2.25
Try::Tiny = 0.18

lib/App/genconf.pm  view on Meta::CPAN


#ABSTRACT: The world's simplest config file generator

use strict;
use warnings;

use File::Find;
use Getopt::Long qw/ GetOptions :config bundling /;
use Path::Class qw/ file /;
use Template;
use Try::Tiny;


sub new {
	my ( $class, $inc ) = @_;
	$inc = [@INC] unless ref $inc eq 'ARRAY';
	bless { verbose => 0, }, $class;
}

sub run {
	my ( $self, @args ) = @_;



( run in 0.423 second using v1.01-cache-2.11-cpan-05444aca049 )