X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Finifile%2Flib%2Fpuppet%2Ftype%2Fini_subsetting.rb;fp=3rdparty%2Fmodules%2Finifile%2Flib%2Fpuppet%2Ftype%2Fini_subsetting.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=c1d6f08ba7c0c4a566c2eaeec5e23b2a58a78c97;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/inifile/lib/puppet/type/ini_subsetting.rb b/3rdparty/modules/inifile/lib/puppet/type/ini_subsetting.rb deleted file mode 100644 index c1d6f08ba..000000000 --- a/3rdparty/modules/inifile/lib/puppet/type/ini_subsetting.rb +++ /dev/null @@ -1,63 +0,0 @@ -Puppet::Type.newtype(:ini_subsetting) do - - ensurable do - defaultvalues - defaultto :present - end - - newparam(:name, :namevar => true) do - desc 'An arbitrary name used as the identity of the resource.' - end - - newparam(:section) do - desc 'The name of the section in the ini file in which the setting should be defined.' + - 'If not provided, defaults to global, top of file, sections.' - defaultto("") - end - - newparam(:setting) do - desc 'The name of the setting to be defined.' - end - - newparam(:subsetting) do - desc 'The name of the subsetting to be defined.' - end - - newparam(:subsetting_separator) do - desc 'The separator string between subsettings. Defaults to " "' - defaultto(" ") - end - - newparam(:path) do - desc 'The ini file Puppet will ensure contains the specified setting.' - validate do |value| - unless (Puppet.features.posix? and value =~ /^\//) or (Puppet.features.microsoft_windows? and (value =~ /^.:\// or value =~ /^\/\/[^\/]+\/[^\/]+/)) - raise(Puppet::Error, "File paths must be fully qualified, not '#{value}'") - end - end - end - - newparam(:key_val_separator) do - desc 'The separator string to use between each setting name and value. ' + - 'Defaults to " = ", but you could use this to override e.g. ": ", or' + - 'whether or not the separator should include whitespace.' - defaultto(" = ") - end - - newparam(:quote_char) do - desc 'The character used to quote the entire value of the setting. ' + - %q{Valid values are '', '"' and "'". Defaults to ''.} - defaultto('') - - validate do |value| - unless value =~ /^["']?$/ - raise Puppet::Error, %q{:quote_char valid values are '', '"' and "'"} - end - end - end - - newproperty(:value) do - desc 'The value of the subsetting to be defined.' - end - -end