|
23 | 23 |
|
24 | 24 | provides :rbenv_gem
|
25 | 25 | unified_mode true
|
| 26 | +use '_partial/_common' |
26 | 27 | # Standard Gem Package Options
|
27 | 28 | # https://docs.chef.io/resource_gem_package.html#properties
|
28 |
| -property :clear_sources, [true, false] |
29 |
| -property :include_default_source, [true, false], default: true |
30 |
| -property :ignore_failure, [true, false], default: false |
31 |
| -property :options, [String, Hash] |
32 |
| -property :package_name, [String, Array], name_property: true |
33 |
| -property :source, [String, Array] |
34 |
| -property :timeout, Integer, default: 300 |
35 |
| -property :version, String |
36 |
| -property :response_file, String # Only used to reconfigure |
37 |
| -property :rbenv_version, String, required: true |
38 |
| -property :user, String |
39 |
| -property :root_path, String, default: lazy { Chef::Rbenv::Helpers.root_path(node, user) } |
| 29 | +property :clear_sources, |
| 30 | + [true, false], |
| 31 | + description: 'Clear the gem sources.' |
| 32 | + |
| 33 | +property :include_default_source, |
| 34 | + [true, false], |
| 35 | + default: true, |
| 36 | + description: 'Set to false to not include Chef::Config[:rubygems_url] in the sources.' |
| 37 | + |
| 38 | +property :ignore_failure, |
| 39 | + [true, false], |
| 40 | + default: false, |
| 41 | + description: 'Continue running a recipe if a resource fails for any reason.' |
| 42 | + |
| 43 | +property :options, |
| 44 | + [String, Hash], |
| 45 | + description: 'Options to pass to the gem command.' |
| 46 | + |
| 47 | +property :package_name, |
| 48 | + [String, Array], |
| 49 | + name_property: true, |
| 50 | + description: 'The Gem package name to install.' |
| 51 | + |
| 52 | +property :source, |
| 53 | + [String, Array], |
| 54 | + description: 'Source URL/location for gem.' |
| 55 | + |
| 56 | +property :timeout, |
| 57 | + Integer, |
| 58 | + default: 300, |
| 59 | + description: 'Timeout in seconds to wait for Gem installation.' |
| 60 | + |
| 61 | +property :version, |
| 62 | + String, |
| 63 | + description: 'Gem version to install.' |
| 64 | + |
| 65 | +property :response_file, |
| 66 | + String, |
| 67 | + description: 'Response file to reconfigure a gem.' |
| 68 | + |
| 69 | +property :rbenv_version, |
| 70 | + String, |
| 71 | + required: true, |
| 72 | + description: 'Which rbenv version to install the Gem to.' |
40 | 73 |
|
41 | 74 | default_action :install
|
42 | 75 |
|
|
0 commit comments