Sha256: de32518c789cb33231775e22a769014de74ab07840da52a52f40e81154ab62a4

Contents?: true

Size: 591 Bytes

Versions: 12

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../puppet/provider/nameservice'

class Puppet::Provider::NameService
  class ObjectAdd < Puppet::Provider::NameService
    def deletecmd
      [command(:delete), @resource[:name]]
    end

    # Determine the flag to pass to our command.
    def flag(name)
      name = name.intern if name.is_a? String
      self.class.option(name, :flag) || "-" + name.to_s[0, 1]
    end

    def posixmethod(name)
      name   = name.intern if name.is_a? String
      method = self.class.option(name, :method) || name

      method
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-8.5.1 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.1-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.1-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.1-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.5.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-8.4.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.4.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.4.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-8.4.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb