Sha256: aa3e27ba992b16dd55ba4f4ec127bd34594a5c84abd2a2a4e78c02d164accce8

Contents?: true

Size: 542 Bytes

Versions: 338

Compression:

Stored size: 542 Bytes

Contents

require '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

338 entries across 338 versions & 2 rubygems

Version Path
puppet-6.29.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.29.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.29.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.29.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-6.28.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.28.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.28.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.28.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-6.27.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.27.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.27.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.27.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-6.26.0 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.26.0-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.26.0-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.26.0-universal-darwin lib/puppet/provider/nameservice/objectadd.rb
puppet-6.25.1 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.25.1-x86-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.25.1-x64-mingw32 lib/puppet/provider/nameservice/objectadd.rb
puppet-6.25.1-universal-darwin lib/puppet/provider/nameservice/objectadd.rb