| 1 | package Langertha::Raider::Packs::Pack; | ||
| 2 | 76 | our $VERSION = '0.503'; | |
| 3 | # ABSTRACT: A single raider pack - persona or power bundle | ||
| 4 | |||
| 5 | |||
| 6 | 76 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 76 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 76 | has name => (is => 'ro', isa => 'Str', required => 1); | |
| 10 | 76 | has path => (is => 'ro', isa => 'Str', required => 1); | |
| 11 | |||
| 12 | |||
| 13 | 76 | has origin => (is => 'ro', isa => 'Str', default => 'shipped'); | |
| 14 | 76 | has skill_text => (is => 'ro', isa => 'Str', predicate => 'has_skill_text'); | |
| 15 | 76 | has exclusive_group => (is => 'ro', isa => 'Str', default => 'power'); | |
| 16 | 76 | has enabled_by_default => (is => 'ro', isa => 'Bool', default => 0); | |
| 17 | |||
| 18 | # Built-in tool servers the pack requests (tools: in pack.yml, e.g. [perl]); | ||
| 19 | # a request, the CLI decides whether to grant it (ADR 0005). | ||
| 20 | 0 | ▶ | has tools => (is => 'ro', isa => 'ArrayRef[Str]', default => sub { [] }); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 21 | |||
| 22 | # Default detection rule from pack.yml; validated when it is evaluated. | ||
| 23 | 76 | has detect => (is => 'ro', predicate => 'has_detect'); | |
| 24 | |||
| 25 | 76 | __PACKAGE__->meta->make_immutable; | |
| 26 | |||
| 27 | 76 | 1; | |
| 28 | |||
| 29 | __END__ | ||
| 30 | |||
| 31 | =pod | ||
| 32 | |||
| 33 | =encoding UTF-8 | ||
| 34 | |||
| 35 | =head1 NAME | ||
| 36 | |||
| 37 | Langertha::Raider::Packs::Pack - A single raider pack - persona or power bundle | ||
| 38 | |||
| 39 | =head1 VERSION | ||
| 40 | |||
| 41 | version 0.503 | ||
| 42 | |||
| 43 | =head1 DESCRIPTION | ||
| 44 | |||
| 45 | Holds one pack loaded by L<Langertha::Raider::Packs>: its skill text, | ||
| 46 | exclusive group, the kind of place it was found in, the built-in tools it | ||
| 47 | requests and its default detection rule (C<detect:> in F<pack.yml>, see | ||
| 48 | L<Langertha::Raider::Detect>). | ||
| 49 | |||
| 50 | =head2 origin | ||
| 51 | |||
| 52 | Where the pack was found: C<project> (F<< <root>/.raider/packs/ >>), | ||
| 53 | C<home> (F<~/.raider/packs/>), C<shipped> (the bundled F<share/packs/>) or | ||
| 54 | C<env> (C<$RAIDER_PACK_DIRS>); see L<Langertha::Raider::Packs/build_packs>. | ||
| 55 | |||
| 56 | =head1 SUPPORT | ||
| 57 | |||
| 58 | =head2 Issues | ||
| 59 | |||
| 60 | Please report bugs and feature requests on GitHub at | ||
| 61 | L<https://github.com/Getty/langertha-raider/issues>. | ||
| 62 | |||
| 63 | =head2 IRC | ||
| 64 | |||
| 65 | Join C<#langertha> on C<irc.perl.org> or message Getty directly. | ||
| 66 | |||
| 67 | =head1 CONTRIBUTING | ||
| 68 | |||
| 69 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 70 | |||
| 71 | =head1 AUTHOR | ||
| 72 | |||
| 73 | Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/> | ||
| 74 | |||
| 75 | =head1 COPYRIGHT AND LICENSE | ||
| 76 | |||
| 77 | This software is copyright (c) 2026 by Torsten Raudssus. | ||
| 78 | |||
| 79 | This is free software; you can redistribute it and/or modify it under | ||
| 80 | the same terms as the Perl 5 programming language system itself. | ||
| 81 | |||
| 82 | =cut | ||