Class: Puppet::Provider::NameService::PW

Inherits:
ObjectAdd show all
Defined in:
lib/puppet/provider/nameservice/pw.rb

Instance Attribute Summary

Attributes inherited from Puppet::Provider

#model, #resource

Attributes included from Util::Docs

#doc, #nodoc

Instance Method Summary collapse

Methods inherited from ObjectAdd

#flag, #posixmethod

Methods inherited from Puppet::Provider::NameService

#autogen, autogen_default, autogen_defaults, #autogen_id, #create, #delete, #ensure, #exists?, #get, #getinfo, #groups, #info2hash, #initialize, initvars, instances, listbyname, option, options, resource_type=, section, #set, validate, verify

Methods inherited from Puppet::Provider

#clear, command, #command, commands, declared_feature?, default?, defaultfor, #get, #initialize, initvars, instances, make_command_methods, mk_resource_methods, mkmodelmethods, #name, optional_commands, #set, specificity, supports_parameter?, #to_s

Methods included from Util::Logging

#send_log

Methods included from Util

activerecord_version, benchmark, chuser, classproxy, #execfail, #execpipe, execute, logmethods, memory, proxy, recmkdir, secure_open, symbolize, symbolizehash, symbolizehash!, synchronize_on, thinmark, #threadlock, which, withumask

Methods included from Util::POSIX

#get_posix_field, #gid, #idfield, #methodbyid, #methodbyname, #search_posix_field, #uid

Methods included from Util::Docs

#desc, #dochook, #doctable, #nodoc?, #pad, scrub

Methods included from Util::Warnings

clear_warnings, notice_once, warnonce

Methods included from Confiner

#confine, #confine_collection, #suitable?

Methods included from Util::Errors

#adderrorcontext, #devfail, #error_context, #exceptwrap, #fail

Constructor Details

This class inherits a constructor from Puppet::Provider::NameService

Instance Method Details

#deletecmdObject



5
6
7
# File 'lib/puppet/provider/nameservice/pw.rb', line 5

def deletecmd
  [command(:pw), "#{@resource.class.name.to_s}del", @resource[:name]]
end

#modifycmd(param, value) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/puppet/provider/nameservice/pw.rb', line 9

def modifycmd(param, value)
  cmd = [
    command(:pw),
    "#{@resource.class.name.to_s}mod",
    @resource[:name],
    flag(param),
    value
  ]
  cmd
end