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