LEFT | RIGHT |
1 # == Type: adblockplus::mercurial::extension | 1 # == Type: adblockplus::mercurial::extension |
2 # | 2 # |
3 # Setup rotation for a particular log file. | 3 # Setup rotation for a particular log file. |
4 # | 4 # |
5 # === Parameters: | 5 # === Parameters: |
6 # | 6 # |
7 # [*config*] | 7 # [*config*] |
8 # Overwrite the default hgrc.d/$name file for Mercurial extensions. | 8 # Overwrite the default hgrc.d/$name file for Mercurial extensions. |
9 # | 9 # |
10 # [*package*] | 10 # [*package*] |
11 # Overwrite the default package/extension options, to fine-tune the target | 11 # Overwrite the default package/extension options. |
12 # version. | |
13 # | 12 # |
14 # === Examples: | 13 # === Examples: |
15 # | 14 # |
16 # adblockplus::mercurial::extension {'example': | 15 # adblockplus::mercurial::extension {'example': |
17 # name => 'pager', | 16 # name => 'pager', |
18 # config => { | 17 # config => { |
19 # content => join([ | 18 # content => join([ |
20 # '[extensions]', | 19 # '[extensions]', |
21 # 'pager = ', | 20 # 'pager = ', |
22 # '[pager]', | 21 # '[pager]', |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if defined('$package') { | 71 if defined('$package') { |
73 | 72 |
74 ensure_resource('package', $name, merge({ | 73 ensure_resource('package', $name, merge({ |
75 ensure => $adblockplus::mercurial::ensure, | 74 ensure => $adblockplus::mercurial::ensure, |
76 require => Package['python-dev'], | 75 require => Package['python-dev'], |
77 }, $package)) | 76 }, $package)) |
78 | 77 |
79 Package[$name] <- Package['mercurial'] | 78 Package[$name] <- Package['mercurial'] |
80 } | 79 } |
81 } | 80 } |
LEFT | RIGHT |