| 1 | #!/usr/bin/env perl | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use OrePAN2::CLI::Inject; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | OrePAN2::CLI::Inject->new->run(@ARGV); | |
| 7 | |||
| 8 | __END__ | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | orepan2-inject - Injector | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | % orepan2-inject git://github.com/tokuhirom/Text-TestBase.git@master /path/to/darkpan/ | ||
| 17 | % orepan2-inject Carton /path/to/darkpan/ | ||
| 18 | |||
| 19 | =head1 DESCRIPTION | ||
| 20 | |||
| 21 | OrePAN2 injector. This module injects your modules into the OrePAN2 DarkPAN repository. | ||
| 22 | |||
| 23 | =head1 OPTIONS | ||
| 24 | |||
| 25 | =over 4 | ||
| 26 | |||
| 27 | =item C< --no-generate-index > | ||
| 28 | |||
| 29 | Do not generate I<02packages.details.txt.gz>. | ||
| 30 | |||
| 31 | =item C< --author=DANKOGAI > | ||
| 32 | |||
| 33 | Specify the cpan author directory name. | ||
| 34 | |||
| 35 | OrePAN2 uses 'DUMMY' as a default author name. | ||
| 36 | |||
| 37 | =item C< --author_subdir=ExtraStuff > | ||
| 38 | |||
| 39 | Create directory elements following the author directory name. | ||
| 40 | |||
| 41 | By default OrePAN2 does not create directory elements beyond the author. | ||
| 42 | |||
| 43 | =item C< --simple > | ||
| 44 | |||
| 45 | Use a simple format for 02packages metadata. This helps avoid merge conflicts. | ||
| 46 | |||
| 47 | =back | ||
| 48 | |||
| 49 | =head1 SOURCES | ||
| 50 | |||
| 51 | orepan2-inject script supports following source types. | ||
| 52 | |||
| 53 | =head2 ARCHIVE FILE | ||
| 54 | |||
| 55 | orepan2-inject Text-TestBase-0.10.tar.gz /path/to/darkpan/ | ||
| 56 | |||
| 57 | You can inject into DarkPAN from a file. | ||
| 58 | |||
| 59 | =head2 HTTP URL | ||
| 60 | |||
| 61 | orepan2-inject http://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Text-TestBase-0.10.tar.gz /path/to/darkpan/ | ||
| 62 | |||
| 63 | You can inject into DarkPAN from an archive URL. | ||
| 64 | |||
| 65 | =head2 Git repository | ||
| 66 | |||
| 67 | % orepan2-inject git://github.com/tokuhirom/Text-TestBase.git@master /path/to/darkpan/ | ||
| 68 | % orepan2-inject git://github.com/tokuhirom/Text-TestBase.git /path/to/darkpan/ | ||
| 69 | |||
| 70 | You need to set up git repository as a installable git repo. | ||
| 71 | You need to put a META.json in your repository. | ||
| 72 | |||
| 73 | If you are using Minilla or Milla, your repository is already ready to install. | ||
| 74 | |||
| 75 | OrePAN2::Inject supports the following URL types: | ||
| 76 | |||
| 77 | git+file://path/to/repo.git | ||
| 78 | git://github.com/plack/Plack.git@1.0000 # tag | ||
| 79 | git://github.com/plack/Plack.git@devel # branch | ||
| 80 | |||
| 81 | It's compatible with cpanm. | ||
| 82 | |||
| 83 | =head2 Module name | ||
| 84 | |||
| 85 | % orepan2-inject Data::Dumper /path/to/darkpan | ||
| 86 | |||
| 87 | You can inject from CPAN by module name. | ||
| 88 | |||