chef 16.0.257-universal-mingw32 → 16.0.275-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +30 -16
  3. data/chef.gemspec +1 -1
  4. data/lib/chef/knife/environment_compare.rb +1 -1
  5. data/lib/chef/knife/list.rb +1 -1
  6. data/lib/chef/knife/supermarket_install.rb +1 -1
  7. data/lib/chef/knife/yaml_convert.rb +2 -2
  8. data/lib/chef/provider/execute.rb +1 -1
  9. data/lib/chef/provider/package/freebsd/base.rb +2 -1
  10. data/lib/chef/provider/package/homebrew.rb +1 -1
  11. data/lib/chef/provider/package/macports.rb +0 -2
  12. data/lib/chef/provider/package/windows.rb +26 -51
  13. data/lib/chef/provider/user/dscl.rb +1 -1
  14. data/lib/chef/resource/alternatives.rb +65 -4
  15. data/lib/chef/resource/apt_package.rb +31 -2
  16. data/lib/chef/resource/apt_preference.rb +34 -5
  17. data/lib/chef/resource/apt_repository.rb +22 -15
  18. data/lib/chef/resource/apt_update.rb +6 -4
  19. data/lib/chef/resource/archive_file.rb +5 -4
  20. data/lib/chef/resource/bash.rb +1 -1
  21. data/lib/chef/resource/batch.rb +1 -1
  22. data/lib/chef/resource/bff_package.rb +1 -1
  23. data/lib/chef/resource/breakpoint.rb +1 -1
  24. data/lib/chef/resource/build_essential.rb +8 -4
  25. data/lib/chef/resource/cab_package.rb +1 -1
  26. data/lib/chef/resource/chef_client_cron.rb +12 -9
  27. data/lib/chef/resource/chef_client_scheduled_task.rb +9 -6
  28. data/lib/chef/resource/chef_client_systemd_timer.rb +10 -7
  29. data/lib/chef/resource/chef_gem.rb +6 -2
  30. data/lib/chef/resource/chef_handler.rb +1 -1
  31. data/lib/chef/resource/chef_sleep.rb +7 -4
  32. data/lib/chef/resource/chef_vault_secret.rb +3 -3
  33. data/lib/chef/resource/chocolatey_config.rb +5 -3
  34. data/lib/chef/resource/chocolatey_feature.rb +5 -3
  35. data/lib/chef/resource/chocolatey_package.rb +5 -3
  36. data/lib/chef/resource/chocolatey_source.rb +5 -3
  37. data/lib/chef/resource/cookbook_file.rb +3 -2
  38. data/lib/chef/resource/cron.rb +15 -15
  39. data/lib/chef/resource/cron_access.rb +7 -4
  40. data/lib/chef/resource/cron_d.rb +37 -23
  41. data/lib/chef/resource/csh.rb +1 -1
  42. data/lib/chef/resource/directory.rb +1 -1
  43. data/lib/chef/resource/dmg_package.rb +18 -15
  44. data/lib/chef/resource/dnf_package.rb +1 -1
  45. data/lib/chef/resource/dpkg_package.rb +1 -1
  46. data/lib/chef/resource/execute.rb +2 -2
  47. data/lib/chef/resource/file.rb +5 -4
  48. data/lib/chef/resource/freebsd_package.rb +1 -1
  49. data/lib/chef/resource/gem_package.rb +6 -6
  50. data/lib/chef/resource/group.rb +1 -1
  51. data/lib/chef/resource/homebrew_cask.rb +1 -1
  52. data/lib/chef/resource/homebrew_package.rb +1 -1
  53. data/lib/chef/resource/homebrew_tap.rb +1 -1
  54. data/lib/chef/resource/hostname.rb +4 -4
  55. data/lib/chef/resource/http_request.rb +1 -1
  56. data/lib/chef/resource/ifconfig.rb +7 -7
  57. data/lib/chef/resource/ips_package.rb +1 -1
  58. data/lib/chef/resource/kernel_module.rb +1 -1
  59. data/lib/chef/resource/ksh.rb +1 -1
  60. data/lib/chef/resource/launchd.rb +1 -1
  61. data/lib/chef/resource/link.rb +4 -4
  62. data/lib/chef/resource/locale.rb +1 -1
  63. data/lib/chef/resource/log.rb +1 -1
  64. data/lib/chef/resource/macos_userdefaults.rb +1 -1
  65. data/lib/chef/resource/macosx_service.rb +1 -1
  66. data/lib/chef/resource/macports_package.rb +1 -1
  67. data/lib/chef/resource/mdadm.rb +1 -1
  68. data/lib/chef/resource/mount.rb +1 -1
  69. data/lib/chef/resource/msu_package.rb +1 -1
  70. data/lib/chef/resource/ohai.rb +1 -1
  71. data/lib/chef/resource/ohai_hint.rb +1 -1
  72. data/lib/chef/resource/openbsd_package.rb +1 -1
  73. data/lib/chef/resource/openssl_dhparam.rb +1 -1
  74. data/lib/chef/resource/openssl_ec_private_key.rb +1 -1
  75. data/lib/chef/resource/openssl_ec_public_key.rb +1 -1
  76. data/lib/chef/resource/openssl_rsa_private_key.rb +1 -1
  77. data/lib/chef/resource/openssl_rsa_public_key.rb +1 -1
  78. data/lib/chef/resource/openssl_x509_certificate.rb +1 -1
  79. data/lib/chef/resource/openssl_x509_crl.rb +1 -1
  80. data/lib/chef/resource/openssl_x509_request.rb +1 -1
  81. data/lib/chef/resource/osx_profile.rb +1 -1
  82. data/lib/chef/resource/package.rb +1 -1
  83. data/lib/chef/resource/pacman_package.rb +1 -1
  84. data/lib/chef/resource/paludis_package.rb +1 -1
  85. data/lib/chef/resource/perl.rb +1 -1
  86. data/lib/chef/resource/plist.rb +1 -1
  87. data/lib/chef/resource/portage_package.rb +1 -1
  88. data/lib/chef/resource/powershell_package.rb +1 -1
  89. data/lib/chef/resource/powershell_package_source.rb +1 -1
  90. data/lib/chef/resource/powershell_script.rb +1 -1
  91. data/lib/chef/resource/python.rb +1 -1
  92. data/lib/chef/resource/reboot.rb +1 -1
  93. data/lib/chef/resource/registry_key.rb +1 -1
  94. data/lib/chef/resource/remote_directory.rb +1 -1
  95. data/lib/chef/resource/remote_file.rb +1 -2
  96. data/lib/chef/resource/rhsm_errata.rb +1 -3
  97. data/lib/chef/resource/rhsm_errata_level.rb +1 -1
  98. data/lib/chef/resource/rhsm_register.rb +1 -2
  99. data/lib/chef/resource/rhsm_repo.rb +1 -2
  100. data/lib/chef/resource/rhsm_subscription.rb +1 -3
  101. data/lib/chef/resource/route.rb +1 -1
  102. data/lib/chef/resource/rpm_package.rb +5 -2
  103. data/lib/chef/resource/ruby.rb +1 -1
  104. data/lib/chef/resource/ruby_block.rb +1 -4
  105. data/lib/chef/resource/scm/_scm.rb +4 -3
  106. data/lib/chef/resource/scm/git.rb +1 -1
  107. data/lib/chef/resource/scm/subversion.rb +2 -2
  108. data/lib/chef/resource/script.rb +1 -1
  109. data/lib/chef/resource/service.rb +1 -1
  110. data/lib/chef/resource/smartos_package.rb +1 -1
  111. data/lib/chef/resource/snap_package.rb +1 -1
  112. data/lib/chef/resource/solaris_package.rb +1 -1
  113. data/lib/chef/resource/ssh_known_hosts_entry.rb +1 -1
  114. data/lib/chef/resource/sudo.rb +4 -4
  115. data/lib/chef/resource/swap_file.rb +2 -2
  116. data/lib/chef/resource/sysctl.rb +61 -2
  117. data/lib/chef/resource/systemd_unit.rb +2 -2
  118. data/lib/chef/resource/timezone.rb +1 -1
  119. data/lib/chef/resource/user.rb +2 -2
  120. data/lib/chef/resource/user_ulimit.rb +24 -22
  121. data/lib/chef/resource/windows_ad_join.rb +1 -1
  122. data/lib/chef/resource/windows_auto_run.rb +2 -2
  123. data/lib/chef/resource/windows_certificate.rb +1 -1
  124. data/lib/chef/resource/windows_dfs_folder.rb +1 -1
  125. data/lib/chef/resource/windows_dfs_namespace.rb +1 -1
  126. data/lib/chef/resource/windows_dfs_server.rb +1 -1
  127. data/lib/chef/resource/windows_env.rb +10 -1
  128. data/lib/chef/resource/windows_feature.rb +57 -2
  129. data/lib/chef/resource/windows_feature_dism.rb +15 -2
  130. data/lib/chef/resource/windows_feature_powershell.rb +29 -2
  131. data/lib/chef/resource/windows_firewall_rule.rb +9 -5
  132. data/lib/chef/resource/windows_font.rb +10 -1
  133. data/lib/chef/resource/windows_package.rb +63 -3
  134. data/lib/chef/resource/windows_pagefile.rb +30 -2
  135. data/lib/chef/resource/windows_path.rb +18 -1
  136. data/lib/chef/resource/windows_printer.rb +25 -5
  137. data/lib/chef/resource/windows_printer_port.rb +29 -1
  138. data/lib/chef/resource/windows_security_policy.rb +1 -1
  139. data/lib/chef/resource/windows_service.rb +1 -1
  140. data/lib/chef/resource/windows_share.rb +21 -1
  141. data/lib/chef/resource/windows_shortcut.rb +13 -2
  142. data/lib/chef/resource/windows_task.rb +122 -8
  143. data/lib/chef/resource/windows_uac.rb +20 -1
  144. data/lib/chef/resource/windows_workgroup.rb +19 -3
  145. data/lib/chef/resource/yum_package.rb +88 -6
  146. data/lib/chef/resource/yum_repository.rb +28 -11
  147. data/lib/chef/resource/zypper_package.rb +29 -3
  148. data/lib/chef/resource/zypper_repository.rb +17 -5
  149. data/lib/chef/resource_inspector.rb +1 -1
  150. data/lib/chef/scan_access_control.rb +1 -1
  151. data/lib/chef/version.rb +1 -1
  152. data/spec/functional/resource/link_spec.rb +3 -3
  153. data/spec/functional/resource/remote_file_spec.rb +1 -1
  154. data/spec/integration/knife/raw_spec.rb +4 -4
  155. data/spec/integration/knife/redirection_spec.rb +2 -2
  156. data/spec/support/platform_helpers.rb +0 -13
  157. data/spec/support/shared/functional/http.rb +2 -2
  158. data/spec/support/shared/unit/mock_shellout.rb +1 -1
  159. data/spec/unit/file_access_control_spec.rb +1 -1
  160. data/spec/unit/mixin/shell_out_spec.rb +25 -31
  161. data/spec/unit/provider/apt_repository_spec.rb +27 -27
  162. data/spec/unit/provider/zypper_repository_spec.rb +17 -17
  163. data/spec/unit/provider_resolver_spec.rb +2 -2
  164. metadata +10 -10
@@ -47,7 +47,7 @@ class Chef
47
47
  ```
48
48
  DOC
49
49
 
50
- description "Use the openssl_rsa_public_key resource to generate RSA public key files for a given RSA private key."
50
+ description "Use the **openssl_rsa_public_key** resource to generate RSA public key files for a given RSA private key."
51
51
  introduced "14.0"
52
52
 
53
53
  property :path, String,
@@ -27,7 +27,7 @@ class Chef
27
27
  provides :openssl_x509_certificate
28
28
  provides(:openssl_x509) { true } # legacy cookbook name.
29
29
 
30
- description "Use the openssl_x509_certificate resource to generate signed or self-signed, PEM-formatted x509 certificates. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate. If a CA private key and certificate are provided, the certificate will be signed with them. Note: This resource was renamed from openssl_x509 to openssl_x509_certificate. The legacy name will continue to function, but cookbook code should be updated for the new resource name."
30
+ description "Use the **openssl_x509_certificate** resource to generate signed or self-signed, PEM-formatted x509 certificates. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate. If a CA private key and certificate are provided, the certificate will be signed with them. Note: This resource was renamed from openssl_x509 to openssl_x509_certificate. The legacy name will continue to function, but cookbook code should be updated for the new resource name."
31
31
  introduced "14.4"
32
32
  examples <<~DOC
33
33
  Create a simple self-signed certificate file
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :openssl_x509_crl
28
28
 
29
- description "Use the openssl_x509_crl resource to generate PEM-formatted x509 certificate revocation list (CRL) files."
29
+ description "Use the **openssl_x509_crl** resource to generate PEM-formatted x509 certificate revocation list (CRL) files."
30
30
  introduced "14.4"
31
31
  examples <<~DOC
32
32
  Generate a CRL file given a cert file and key file
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :openssl_x509_request
28
28
 
29
- description "Use the openssl_x509_request resource to generate PEM-formatted x509 certificates requests. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate."
29
+ description "Use the **openssl_x509_request** resource to generate PEM-formatted x509 certificates requests. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate."
30
30
  introduced "14.4"
31
31
  examples <<~DOC
32
32
  Generate new ec key and csr file
@@ -26,7 +26,7 @@ class Chef
26
26
  provides :osx_profile
27
27
  provides :osx_config_profile
28
28
 
29
- description "Use the osx_profile resource to manage configuration profiles (.mobileconfig files) on the macOS platform. The osx_profile resource installs profiles by using the uuidgen library to generate a unique ProfileUUID, and then using the profiles command to install the profile on the system."
29
+ description "Use the **osx_profile** resource to manage configuration profiles (.mobileconfig files) on the macOS platform. The osx_profile resource installs profiles by using the uuidgen library to generate a unique ProfileUUID, and then using the profiles command to install the profile on the system."
30
30
  introduced "12.7"
31
31
 
32
32
  default_action :install
@@ -25,7 +25,7 @@ class Chef
25
25
  unified_mode true
26
26
  provides :package
27
27
 
28
- description "Use the package resource to manage packages. When the package is"\
28
+ description "Use the **package** resource to manage packages. When the package is"\
29
29
  " installed from a local file (such as with RubyGems, dpkg, or RPM"\
30
30
  " Package Manager), the file must be added to the node using the remote_file"\
31
31
  " or cookbook_file resources.\n\nThis resource is the base resource for"\
@@ -25,7 +25,7 @@ class Chef
25
25
 
26
26
  provides :pacman_package
27
27
 
28
- description "Use the pacman_package resource to manage packages (using pacman) on the Arch Linux platform."
28
+ description "Use the **pacman_package** resource to manage packages (using pacman) on the Arch Linux platform."
29
29
  end
30
30
  end
31
31
  end
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :paludis_package
28
28
 
29
- description "Use the paludis_package resource to manage packages for the Paludis platform."
29
+ description "Use the **paludis_package** resource to manage packages for the Paludis platform."
30
30
  introduced "12.1"
31
31
 
32
32
  allowed_actions :install, :remove, :upgrade
@@ -31,7 +31,7 @@ class Chef
31
31
  @interpreter = "perl"
32
32
  end
33
33
 
34
- description "Use the perl resource to execute scripts using the Perl interpreter."\
34
+ description "Use the **perl** resource to execute scripts using the Perl interpreter."\
35
35
  " This resource may also use any of the actions and properties that are"\
36
36
  " available to the execute resource. Commands that are executed with this"\
37
37
  " resource are (by their nature) not idempotent, as they are typically"\
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :plist
28
28
 
29
- description "Use the plist resource to set config values in plist files on macOS systems."
29
+ description "Use the **plist** resource to set config values in plist files on macOS systems."
30
30
  introduced "16.0"
31
31
 
32
32
  property :path, String, name_property: true
@@ -25,7 +25,7 @@ class Chef
25
25
 
26
26
  provides :portage_package
27
27
 
28
- description "Use the portage_package resource to manage packages for the Gentoo platform."
28
+ description "Use the **portage_package** resource to manage packages for the Gentoo platform."
29
29
 
30
30
  property :package_name, String,
31
31
  description: "An optional property to set the package name if it differs from the resource block's name.",
@@ -24,7 +24,7 @@ class Chef
24
24
 
25
25
  provides :powershell_package
26
26
 
27
- description "Use the powershell_package resource to install and manage packages via the PowerShell Package Manager for the Microsoft Windows platform. The powershell_package resource requires administrative access, and a source must be configured in the PowerShell Package Manager via the powershell_package_source resource."
27
+ description "Use the **powershell_package** resource to install and manage packages via the PowerShell Package Manager for the Microsoft Windows platform. The powershell_package resource requires administrative access, and a source must be configured in the PowerShell Package Manager via the powershell_package_source resource."
28
28
  introduced "12.16"
29
29
 
30
30
  allowed_actions :install, :remove
@@ -25,7 +25,7 @@ class Chef
25
25
 
26
26
  provides :powershell_package_source
27
27
 
28
- description "Use the powershell_package_source resource to register a PowerShell package repository."
28
+ description "Use the **powershell_package_source** resource to register a PowerShell package repository."
29
29
  introduced "14.3"
30
30
 
31
31
  property :source_name, String,
@@ -39,7 +39,7 @@ class Chef
39
39
  end
40
40
  }
41
41
 
42
- description "Use the powershell_script resource to execute a script using the Windows PowerShell"\
42
+ description "Use the **powershell_script** resource to execute a script using the Windows PowerShell"\
43
43
  " interpreter, much like how the script and script-based resources—bash, csh, perl, python,"\
44
44
  " and ruby—are used. The powershell_script is specific to the Microsoft Windows platform"\
45
45
  " and the Windows PowerShell interpreter.\n\n The powershell_script resource creates and"\
@@ -30,7 +30,7 @@ class Chef
30
30
  @interpreter = "python"
31
31
  end
32
32
 
33
- description "Use the python resource to execute scripts using the Python interpreter."\
33
+ description "Use the **python** resource to execute scripts using the Python interpreter."\
34
34
  " This resource may also use any of the actions and properties that are available"\
35
35
  " to the execute resource. Commands that are executed with this resource are (by"\
36
36
  " their nature) not idempotent, as they are typically unique to the environment in"\
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :reboot
28
28
 
29
- description "Use the reboot resource to reboot a node, a necessary step with some"\
29
+ description "Use the **reboot** resource to reboot a node, a necessary step with some"\
30
30
  " installations on certain platforms. This resource is supported for use on"\
31
31
  " the Microsoft Windows, macOS, and Linux platforms.\n"\
32
32
  "In using this resource via notifications, it's important to *only* use"\
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides(:registry_key) { true }
28
28
 
29
- description "Use the registry_key resource to create and delete registry keys in Microsoft Windows."
29
+ description "Use the **registry_key** resource to create and delete registry keys in Microsoft Windows."
30
30
  introduced "11.0"
31
31
 
32
32
  state_attrs :values
@@ -29,7 +29,7 @@ class Chef
29
29
 
30
30
  provides :remote_directory
31
31
 
32
- description "Use the remote_directory resource to incrementally transfer a directory from a cookbook to a node. The director that is copied from the cookbook should be located under COOKBOOK_NAME/files/default/REMOTE_DIRECTORY. The remote_directory resource will obey file specificity."
32
+ description "Use the **remote_directory** resource to incrementally transfer a directory from a cookbook to a node. The director that is copied from the cookbook should be located under COOKBOOK_NAME/files/default/REMOTE_DIRECTORY. The remote_directory resource will obey file specificity."
33
33
 
34
34
  default_action :create
35
35
  allowed_actions :create, :create_if_missing, :delete
@@ -31,8 +31,7 @@ class Chef
31
31
 
32
32
  provides :remote_file
33
33
 
34
- description "Use the remote_file resource to transfer a file from a remote location"\
35
- " using file specificity. This resource is similar to the file resource."
34
+ description "Use the **remote_file** resource to transfer a file from a remote location using file specificity. This resource is similar to the file resource."
36
35
 
37
36
  def initialize(name, run_context = nil)
38
37
  super
@@ -23,9 +23,7 @@ class Chef
23
23
  unified_mode true
24
24
  provides(:rhsm_errata) { true }
25
25
 
26
- description "Use the rhsm_errata resource to install packages associated with a given Red"\
27
- " Hat Subscription Manager Errata ID. This is helpful if packages"\
28
- " to mitigate a single vulnerability must be installed on your hosts."
26
+ description "Use the **rhsm_errata** resource to install packages associated with a given Red Hat Subscription Manager Errata ID. This is helpful if packages to mitigate a single vulnerability must be installed on your hosts."
29
27
  introduced "14.0"
30
28
 
31
29
  property :errata_id, String,
@@ -23,7 +23,7 @@ class Chef
23
23
  unified_mode true
24
24
  provides(:rhsm_errata_level) { true }
25
25
 
26
- description "Use the rhsm_errata_level resource to install all packages of a specified errata level from the Red Hat Subscription Manager. For example, you can ensure that all packages associated with errata marked at a 'Critical' security level are installed."
26
+ description "Use the **rhsm_errata_level** resource to install all packages of a specified errata level from the Red Hat Subscription Manager. For example, you can ensure that all packages associated with errata marked at a 'Critical' security level are installed."
27
27
  introduced "14.0"
28
28
 
29
29
  property :errata_level, String,
@@ -25,8 +25,7 @@ class Chef
25
25
  unified_mode true
26
26
  provides(:rhsm_register) { true }
27
27
 
28
- description "Use the rhsm_register resource to register a node with the Red Hat Subscription Manager"\
29
- " or a local Red Hat Satellite server."
28
+ description "Use the **rhsm_register** resource to register a node with the Red Hat Subscription Manager or a local Red Hat Satellite server."
30
29
  introduced "14.0"
31
30
 
32
31
  property :activation_key, [String, Array],
@@ -24,8 +24,7 @@ class Chef
24
24
 
25
25
  provides(:rhsm_repo) { true }
26
26
 
27
- description "Use the rhsm_repo resource to enable or disable Red Hat Subscription Manager"\
28
- " repositories that are made available via attached subscriptions."
27
+ description "Use the **rhsm_repo** resource to enable or disable Red Hat Subscription Manager repositories that are made available via attached subscriptions."
29
28
  introduced "14.0"
30
29
 
31
30
  property :repo_name, String,
@@ -24,9 +24,7 @@ class Chef
24
24
 
25
25
  provides(:rhsm_subscription) { true }
26
26
 
27
- description "Use the rhsm_subscription resource to add or remove Red Hat Subscription Manager"\
28
- " subscriptions from your host. This can be used when a host's activation_key"\
29
- " does not attach all necessary subscriptions to your host."
27
+ description "Use the **rhsm_subscription** resource to add or remove Red Hat Subscription Manager subscriptions from your host. This can be used when a host's activation_key does not attach all necessary subscriptions to your host."
30
28
  introduced "14.0"
31
29
 
32
30
  property :pool_id, String,
@@ -29,7 +29,7 @@ class Chef
29
29
  default_action :add
30
30
  allowed_actions :add, :delete
31
31
 
32
- description "Use the route resource to manage the system routing table in a Linux environment."
32
+ description "Use the **route** resource to manage the system routing table in a Linux environment."
33
33
 
34
34
  property :target, String,
35
35
  description: "The IP address of the target route.",
@@ -25,9 +25,12 @@ class Chef
25
25
 
26
26
  provides :rpm_package
27
27
 
28
- description "Use the rpm_package resource to manage packages using the RPM Package Manager."
28
+ description "Use the **rpm_package** resource to manage packages using the RPM Package Manager."
29
29
 
30
- property :allow_downgrade, [ true, false ], default: true, desired_state: false
30
+ property :allow_downgrade, [ TrueClass, FalseClass ],
31
+ description: "Allow downgrading a package to satisfy requested version requirements.",
32
+ default: true,
33
+ desired_state: false
31
34
 
32
35
  property :package_name, String,
33
36
  description: "An optional property to set the package name if it differs from the resource block's name.",
@@ -26,7 +26,7 @@ class Chef
26
26
 
27
27
  provides :ruby
28
28
 
29
- description "Use the ruby resource to execute scripts using the Ruby interpreter. This"\
29
+ description "Use the **ruby** resource to execute scripts using the Ruby interpreter. This"\
30
30
  " resource may also use any of the actions and properties that are available"\
31
31
  " to the execute resource. Commands that are executed with this resource are (by"\
32
32
  " their nature) not idempotent, as they are typically unique to the environment"\
@@ -28,10 +28,7 @@ class Chef
28
28
 
29
29
  provides :ruby_block, target_mode: true
30
30
 
31
- description "Use the ruby_block resource to execute Ruby code during a #{Chef::Dist::PRODUCT} run."\
32
- " Ruby code in the ruby_block resource is evaluated with other resources during"\
33
- " convergence, whereas Ruby code outside of a ruby_block resource is evaluated"\
34
- " before other resources, as the recipe is compiled."
31
+ description "Use the **ruby_block** resource to execute Ruby code during a #{Chef::Dist::PRODUCT} run. Ruby code in the ruby_block resource is evaluated with other resources during convergence, whereas Ruby code outside of a ruby_block resource is evaluated before other resources, as the recipe is compiled."
35
32
 
36
33
  default_action :run
37
34
  allowed_actions :create, :run
@@ -25,17 +25,18 @@ property :destination, String,
25
25
  description: "The location path to which the source is to be cloned, checked out, or exported. Default value: the name of the resource block.",
26
26
  name_property: true
27
27
 
28
- property :repository, String
28
+ property :repository, String,
29
+ description: "The URI of the code repository."
29
30
 
30
31
  property :revision, String,
31
32
  description: "The revision to checkout.",
32
33
  default: "HEAD"
33
34
 
34
35
  property :user, [String, Integer],
35
- description: "The system user that should own the checked-out code."
36
+ description: "The system user that will own the checked-out code."
36
37
 
37
38
  property :group, [String, Integer],
38
- description: "The system group that should own the checked-out code."
39
+ description: "The system group that will own the checked-out code."
39
40
 
40
41
  property :timeout, Integer,
41
42
  description: "The amount of time (in seconds) to wait before timing out.",
@@ -27,7 +27,7 @@ class Chef
27
27
 
28
28
  provides :git
29
29
 
30
- description "Use the git resource to manage source control resources that exist in a git repository. git version 1.6.5 (or higher) is required to use all of the functionality in the git resource."
30
+ description "Use the **git** resource to manage source control resources that exist in a git repository. git version 1.6.5 (or higher) is required to use all of the functionality in the git resource."
31
31
 
32
32
  property :additional_remotes, Hash,
33
33
  description: "A Hash of additional remotes that are added to the git repository configuration.",
@@ -28,7 +28,7 @@ class Chef
28
28
 
29
29
  provides :subversion
30
30
 
31
- description "Use the subversion resource to manage source control resources that exist in a Subversion repository."
31
+ description "Use the **subversion** resource to manage source control resources that exist in a Subversion repository."
32
32
 
33
33
  allowed_actions :force_export
34
34
 
@@ -38,7 +38,7 @@ class Chef
38
38
  default: "--no-auth-cache"
39
39
 
40
40
  property :svn_info_args, [String, nil, FalseClass],
41
- description: "Use when the svn info command is used by the #{Chef::Dist::CLIENT} and arguments need to be passed. The svn_arguments command does not work when the svn info command is used.",
41
+ description: "Use when the `svn info` command is used by #{Chef::Dist::PRODUCT} and arguments need to be passed. The `svn_arguments` command does not work when the `svn info` command is used.",
42
42
  coerce: proc { |v| v == false ? nil : v }, # coerce false to nil
43
43
  default: "--no-auth-cache"
44
44
 
@@ -28,7 +28,7 @@ class Chef
28
28
 
29
29
  identity_attr :name
30
30
 
31
- description "Use the script resource to execute scripts using a specified interpreter, such as Bash, csh, Perl, Python, or Ruby."\
31
+ description "Use the **script** resource to execute scripts using a specified interpreter, such as Bash, csh, Perl, Python, or Ruby."\
32
32
  " This resource may also use any of the actions and properties that are available to the execute resource. Commands"\
33
33
  " that are executed with this resource are (by their nature) not idempotent, as they are typically unique to the"\
34
34
  " environment in which they are run. Use not_if and only_if to guard this resource for idempotence."
@@ -31,7 +31,7 @@ class Chef
31
31
 
32
32
  provides :service, target_mode: true
33
33
 
34
- description "Use the service resource to manage a service."
34
+ description "Use the **service** resource to manage a service."
35
35
 
36
36
  default_action :nothing
37
37
  allowed_actions :enable, :disable, :start, :stop, :restart, :reload,
@@ -26,7 +26,7 @@ class Chef
26
26
  provides :smartos_package
27
27
  provides :package, platform_family: "smartos"
28
28
 
29
- description "Use the smartos_package resource to manage packages for the SmartOS platform."
29
+ description "Use the **smartos_package** resource to manage packages for the SmartOS platform."
30
30
 
31
31
  property :package_name, String,
32
32
  description: "An optional property to set the package name if it differs from the resource block's name.",
@@ -25,7 +25,7 @@ class Chef
25
25
 
26
26
  provides :snap_package
27
27
 
28
- description "Use the snap_package resource to manage snap packages on Debian and Ubuntu platforms."
28
+ description "Use the **snap_package** resource to manage snap packages on Debian and Ubuntu platforms."
29
29
  introduced "15.0"
30
30
 
31
31
  property :channel, String,
@@ -28,7 +28,7 @@ class Chef
28
28
  provides :package, os: "solaris2", platform_family: "nexentacore"
29
29
  provides :package, os: "solaris2", platform_family: "solaris2", platform_version: "<= 5.10"
30
30
 
31
- description "The solaris_package resource is used to manage packages for the Solaris platform."
31
+ description "Use the **solaris_package** resource to manage packages on the Solaris platform."
32
32
 
33
33
  property :package_name, String,
34
34
  description: "An optional property to set the package name if it differs from the resource block's name.",
@@ -27,7 +27,7 @@ class Chef
27
27
 
28
28
  provides :ssh_known_hosts_entry
29
29
 
30
- description "Use the ssh_known_hosts_entry resource to add an entry for the specified host in /etc/ssh/ssh_known_hosts or a user's known hosts file if specified."
30
+ description "Use the **ssh_known_hosts_entry** resource to add an entry for the specified host in /etc/ssh/ssh_known_hosts or a user's known hosts file if specified."
31
31
  introduced "14.3"
32
32
 
33
33
  property :host, String,
@@ -28,7 +28,7 @@ class Chef
28
28
 
29
29
  provides(:sudo) { true }
30
30
 
31
- description "Use the sudo resource to add or remove individual sudo entries using sudoers.d files."\
31
+ description "Use the **sudo** resource to add or remove individual sudo entries using sudoers.d files."\
32
32
  " Sudo version 1.7.2 or newer is required to use the sudo resource, as it relies on the"\
33
33
  " '#includedir' directive introduced in version 1.7.2. This resource does not enforce"\
34
34
  " installation of the required sudo version. Chef-supported releases of Ubuntu, SuSE, Debian,"\
@@ -88,15 +88,15 @@ class Chef
88
88
  default: lazy { [] }
89
89
 
90
90
  property :setenv, [TrueClass, FalseClass],
91
- description: "Determines whether or not to permit preservation of the environment with 'sudo -E'.",
91
+ description: "Determines whether or not to permit preservation of the environment with `sudo -E`.",
92
92
  default: false
93
93
 
94
94
  property :env_keep_add, Array,
95
- description: "An array of strings to add to env_keep.",
95
+ description: "An array of strings to add to `env_keep`.",
96
96
  default: lazy { [] }
97
97
 
98
98
  property :env_keep_subtract, Array,
99
- description: "An array of strings to remove from env_keep.",
99
+ description: "An array of strings to remove from `env_keep`.",
100
100
  default: lazy { [] }
101
101
 
102
102
  property :visudo_path, String,
@@ -24,7 +24,7 @@ class Chef
24
24
 
25
25
  provides(:swap_file) { true }
26
26
 
27
- description "Use the swap_file resource to create or delete swap files on Linux systems, and optionally to manage the swappiness configuration for a host."
27
+ description "Use the **swap_file** resource to create or delete swap files on Linux systems, and optionally to manage the swappiness configuration for a host."
28
28
  introduced "14.0"
29
29
 
30
30
  property :path, String,
@@ -39,7 +39,7 @@ class Chef
39
39
  default: false
40
40
 
41
41
  property :timeout, Integer,
42
- description: "Timeout for 'dd' / 'fallocate' commands.",
42
+ description: "Timeout for `dd` / `fallocate` commands.",
43
43
  default: 600,
44
44
  desired_state: false
45
45