1Alien::Build::Plugin::DUoswenrloCaodn:t:rGiibtuLtaebdA(l3Pi)eernl::DBouciulmde:n:tPaltuigoinn::Download::GitLab(3)
2
3
4
6 Alien::Build::Plugin::Download::GitLab - Alien::Build plugin to
7 download from GitLab
8
10 version 0.01
11
13 use alienfile;
14
15 plugin 'Download::GitLab' => (
16 gitlab_user => 'plicease',
17 gitlab_project => 'dontpanic',
18 );
19
21 This plugin is designed for downloading assets from a GitLab instance.
22
24 gitlab_host
25 The host to fetch from <https://gitlab.com> by default.
26
27 gitlab_user
28 The user to fetch from.
29
30 gitlab_project
31 The project to fetch from.
32
33 type
34 The asset type to fetch. This must be one of "source" or "link".
35
36 format
37 The expected format of the asset. This should be one that
38 Alien::Build::Plugin::Extract::Negotiate understands. The default is
39 "tar.gz".
40
41 version_from
42 Where to compute the version from. This should be one of "tag_name" or
43 "name". The default is "tag_name".
44
45 convert_version
46 This is an optional code reference, which can be used to modify the
47 version. For example, if tags have a "v" prefix you could remove it
48 like so:
49
50 plugin 'Download::GitLab' => (
51 gitlab_user => 'plicease',
52 gitlab_project => 'dontpanic',
53 convert_version => sub {
54 my $version = shift;
55 $version =~ s/^v//;
56 return $version;
57 },
58 );
59
60 link_name
61 For "link" types, this is a regular expression that filters the asset
62 filenames. For example, if there are multiple archive formats
63 provided, you can get just the gzip'd tarball by setting this to
64 "qr/\.tar\.gz$/".
65
67 Alien
68 Alien::Build::Plugin::Download::GitHub
69 alienfile
70 Alien::Build
71
73 Graham Ollis <plicease@cpan.org>
74
76 This software is copyright (c) 2022 by Graham Ollis.
77
78 This is free software; you can redistribute it and/or modify it under
79 the same terms as the Perl 5 programming language system itself.
80
81
82
83perl v5.38.0 2023A-l0i7e-n2:0:Build::Plugin::Download::GitLab(3)