Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dist::zilla::plugin::templatemodule(3pm) [debian man page]

Dist::Zilla::Plugin::TemplateModule(3pm)		User Contributed Perl Documentation		  Dist::Zilla::Plugin::TemplateModule(3pm)

NAME
Dist::Zilla::Plugin::TemplateModule - a simple module-from-template plugin VERSION
version 4.300020 DESCRIPTION
This is a ModuleMaker used for creating new Perl modules files when minting a new dist with "dzil new". It uses Text::Template (via Dist::Zilla::Role::TextTemplate) to render a template into a Perl module. The template is given two variables for use in rendering: $name, the module name; and $dist, the Dist::Zilla object. The module is always created as a file under ./lib. By default, the template looks something like this: use strict; use warnings; package {{ $name }}; 1; ATTRIBUTES
template The "template" parameter may be given to the plugin to provide a different filename, absolute or relative to the build/profile directory. If this parameter is not specified, this module will use the boilerplate module template included in this module. MINTING CONFIGURATION
This module is part of the standard configuration of the default Dist::Zilla Minting Profile, and all profiles that don't set a custom ':DefaultModuleMaker' so you don't need to normally do anything to configure it. dzil new Some::Module # creates ./Some-Module/* # creates ./Some-Module/lib/Some/Module.pm However, for those who wish to configure this ( or any subclasses ) this is presently required: [TemplateModule / :DefaultModuleMaker] ; template = SomeFile.pm AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::TemplateModule(3pm)

Check Out this Related Man Page

Dist::Zilla::Plugin::DistINI(3pm)			User Contributed Perl Documentation			 Dist::Zilla::Plugin::DistINI(3pm)

NAME
Dist::Zilla::Plugin::DistINI - a plugin to add a dist.ini to newly-minted dists VERSION
version 4.300020 DESCRIPTION
This plugins produces a dist.ini file in a new dist, specifying the required core attributes from the dist being minted. This plugin is dead simple and pretty stupid, but should get better as dist minting facilities improve. For example, it will not specify any plugins. In the meantime, you may be happier with a dist.ini template. ATTRIBUTES
append_file This parameter may be a filename in the profile's directory to append to the generated dist.ini with things like plugins. In other words, if your make this file, called plugins.ini: [@Basic] [NextRelease] [@Git] ...and your profile.ini includes: [DistINI] append_file = plugins.ini ...then the generated "dist.ini" in a newly-minted dist will look something like this: name = My-New-Dist author = E. Xavier Ample <example@example.com> license = Perl_5 copyright_holder = E. Xavier Ample copyright_year = 2010 [@Basic] [NextRelease] [@Git] AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::DistINI(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with Perl Module

I dont know if this is a dumb question, but I am unable to move ahead and need help - There is a perl module called Header.pm which was written by someone else. I am trying to write a simple perl script which uses a function provided by the module. The function has been exported by the module... (9 Replies)
Discussion started by: NewDeb
9 Replies

2. Homework & Coursework Questions

Beginner Scripting Issue

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The object is to enter a number, then have another classmate guess the entered number. 2. Relevant commands,... (6 Replies)
Discussion started by: Jjohn1987
6 Replies

3. Homework & Coursework Questions

changing permissions of a file whos name was passed to 755

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell script that gives a passed file the "755" access permissions. The shell script should: Change... (5 Replies)
Discussion started by: anix007
5 Replies

4. Homework & Coursework Questions

Creating directories within a directory?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Ok i need to create a directory within another directory in one command. I'm already in a directory to. I need to... (6 Replies)
Discussion started by: gangsta
6 Replies

5. Homework & Coursework Questions

removal of files?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: remove all files and only files that the first three characters start with numerals. 2. Relevant commands,... (6 Replies)
Discussion started by: linuxtraining
6 Replies

6. Homework & Coursework Questions

UNIX Recycle Bin - restore function

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: A set of Linux shell scripts is required to allow users to ‘remove' files without them really disappearing until... (8 Replies)
Discussion started by: burn88
8 Replies

7. Homework & Coursework Questions

Display file name

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have a directory called "Month" which has 12 files named on months. /home/months> touch Jan Feb Mar Apr May... (6 Replies)
Discussion started by: manishdivs
6 Replies

8. Homework & Coursework Questions

Shell script calling Perl function, sort and find data, write to new files

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Discussion started by: kowit010
6 Replies

9. Homework & Coursework Questions

Disk Capacity Shell Script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! I am pretty close I think, but stuck. I don't know how to send an email to the user specified on the command line, and I receive an error stating -ge expecting a unary value(lines... (14 Replies)
Discussion started by: polyglot0727
14 Replies

10. Homework & Coursework Questions

Simple Calculator

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known/data: Script a simple calculator. In the command line enter the script file /home/etc/mycalc or /home/etc/mycalc 1 +... (6 Replies)
Discussion started by: herb bertz
6 Replies

11. Homework & Coursework Questions

Cannot correctly connect multi-stage C command pipe (among others) (FYI: a lot of code)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: We are supposed to write a C program that parses a command line, separates it into each command (further... (5 Replies)
Discussion started by: kowit010
5 Replies

12. Homework & Coursework Questions

Need help creating shell script with output that has 2014 calendar and 2 text items from a"fortune"

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am required to create a bash shell script with either emacs or vi. It must include the year 2014 calendar on... (9 Replies)
Discussion started by: dandanhelpmeman
9 Replies

13. Homework & Coursework Questions

Help with simple script with counter

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am to create a script that checks a file for specific attributes. Read, write, execute, if the file is empty,... (13 Replies)
Discussion started by: silencep77
13 Replies

14. Homework & Coursework Questions

Error in installation of Snort 2.97.0

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: My system is Redhat 5.6. I want to install snort in my system which requires following dependencies. 1. Libpcap... (8 Replies)
Discussion started by: Ankur Goyal
8 Replies

15. Homework & Coursework Questions

Alternative solution to nested loops in shell programming

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi, The problem statement is: I am trying to read line by line from a flat file by using a while loop. The... (9 Replies)
Discussion started by: Sandeep Pattnai
9 Replies