From 5a3136b7435dea3b0d1150853bbfa0ea3f2f6af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Mo=CC=88ding?= Date: Tue, 6 May 2025 18:07:35 +0200 Subject: [PATCH] Fix a typo and some formatting in the type and provider docs This patch fixes a typo (letter 'e' missing) and updates the indentation of a code example from two to four spaces. This ensures the example is formatted as code in the generated markdown version. --- lib/puppet/provider/package/tdnf.rb | 2 +- lib/puppet/type/package.rb | 16 ++++++++-------- references/type.md | 18 +++++++++--------- references/types/package.md | 18 +++++++++--------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/puppet/provider/package/tdnf.rb b/lib/puppet/provider/package/tdnf.rb index 81f8a499d2..f3755f83a7 100644 --- a/lib/puppet/provider/package/tdnf.rb +++ b/lib/puppet/provider/package/tdnf.rb @@ -4,7 +4,7 @@ desc "Support via `tdnf`. This provider supports the `install_options` attribute, which allows command-line flags to be passed to tdnf. - These options should be spcified as a string (e.g. '--flag'), a hash (e.g. {'--flag' => 'value'}), or an + These options should be specified as a string (e.g. `'--flag'`), a hash (e.g. `{'--flag' => 'value'}`), or an array where each element is either a string or a hash." has_feature :install_options, :versionable, :virtual_packages diff --git a/lib/puppet/type/package.rb b/lib/puppet/type/package.rb index 0575fcd199..4cc6c73034 100644 --- a/lib/puppet/type/package.rb +++ b/lib/puppet/type/package.rb @@ -291,15 +291,15 @@ def self.parameters_to_include desc <<-EOT The targeted command to use when managing a package: - package { 'mysql': - provider => gem, - } + package { 'mysql': + provider => gem, + } - package { 'mysql-opt': - name => 'mysql', - provider => gem, - command => '/opt/ruby/bin/gem', - } + package { 'mysql-opt': + name => 'mysql', + provider => gem, + command => '/opt/ruby/bin/gem', + } Each provider defines a package management command and uses the first instance of the command found in the PATH. diff --git a/references/type.md b/references/type.md index bdde857ae5..43033998e7 100644 --- a/references/type.md +++ b/references/type.md @@ -2063,15 +2063,15 @@ _(**Namevar:** If omitted, this attribute's value defaults to the resource's tit The targeted command to use when managing a package: - package { 'mysql': - provider => gem, - } + package { 'mysql': + provider => gem, + } - package { 'mysql-opt': - name => 'mysql', - provider => gem, - command => '/opt/ruby/bin/gem', - } + package { 'mysql-opt': + name => 'mysql', + provider => gem, + command => '/opt/ruby/bin/gem', + } Each provider defines a package management command and uses the first instance of the command found in the PATH. @@ -2795,7 +2795,7 @@ has not actually been tested. Support via `tdnf`. This provider supports the `install_options` attribute, which allows command-line flags to be passed to tdnf. -These options should be spcified as a string (e.g. '--flag'), a hash (e.g. {'--flag' => 'value'}), or an +These options should be specified as a string (e.g. `'--flag'`), a hash (e.g. `{'--flag' => 'value'}`), or an array where each element is either a string or a hash. * Required binaries: `rpm`, `tdnf`. diff --git a/references/types/package.md b/references/types/package.md index 499c2f71b6..e06c115419 100644 --- a/references/types/package.md +++ b/references/types/package.md @@ -80,15 +80,15 @@ _(**Namevar:** If omitted, this attribute's value defaults to the resource's tit The targeted command to use when managing a package: - package { 'mysql': - provider => gem, - } + package { 'mysql': + provider => gem, + } - package { 'mysql-opt': - name => 'mysql', - provider => gem, - command => '/opt/ruby/bin/gem', - } + package { 'mysql-opt': + name => 'mysql', + provider => gem, + command => '/opt/ruby/bin/gem', + } Each provider defines a package management command and uses the first instance of the command found in the PATH. @@ -942,7 +942,7 @@ has not actually been tested. Support via `tdnf`. This provider supports the `install_options` attribute, which allows command-line flags to be passed to tdnf. -These options should be spcified as a string (e.g. '--flag'), a hash (e.g. {'--flag' => 'value'}), or an +These options should be specified as a string (e.g. `'--flag'`), a hash (e.g. `{'--flag' => 'value'}`), or an array where each element is either a string or a hash. * Required binaries: `rpm`, `tdnf`