LEFT | RIGHT |
1 # == Class: adblockplus::mercurial | 1 # == Class: adblockplus::mercurial |
2 # | 2 # |
3 # Manage Mercurial (https://www.mercurial-scm.org/) resources. | 3 # Manage Mercurial (https://www.mercurial-scm.org/) resources. |
4 # | 4 # |
5 # === Parameters: | 5 # === Parameters: |
6 # | 6 # |
7 # [*config*] | 7 # [*config*] |
8 # Overwrite the default hgrc file options for the Mercurial config. | 8 # Overwrite the default hgrc file options for the Mercurial config. |
9 # | 9 # |
10 # [*package*] | 10 # [*package*] |
11 # Overwrite the default package options, to fine-tune the target version. | 11 # Overwrite the default package options. |
12 # | 12 # |
13 # === Examples: | 13 # === Examples: |
14 # | 14 # |
15 # class {'adblockplus::mercurial': | 15 # class {'adblockplus::mercurial': |
16 # package => { | 16 # package => { |
17 # ensure => 'latest', | 17 # ensure => 'latest', |
18 # }, | 18 # }, |
19 # } | 19 # } |
20 # | 20 # |
21 class adblockplus::mercurial ( | 21 class adblockplus::mercurial ( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 content => $default_content, | 55 content => $default_content, |
56 }, $config)) | 56 }, $config)) |
57 | 57 |
58 # https://docs.puppet.com/puppet/latest/lang_relationships.html | 58 # https://docs.puppet.com/puppet/latest/lang_relationships.html |
59 Package['mercurial'] -> File['hgrc'] | 59 Package['mercurial'] -> File['hgrc'] |
60 | 60 |
61 # https://docs.puppet.com/puppet/latest/function.html#createresources | 61 # https://docs.puppet.com/puppet/latest/function.html#createresources |
62 $extensions = hiera_hash('adblockplus::mercurial::extensions', {}) | 62 $extensions = hiera_hash('adblockplus::mercurial::extensions', {}) |
63 create_resources('adblockplus::mercurial::extension', $extensions) | 63 create_resources('adblockplus::mercurial::extension', $extensions) |
64 } | 64 } |
LEFT | RIGHT |