Sha256: a2a161db923721587a27791f7a14db3ef3b206a3e87c2589512a69d24693e791
Contents?: true
Size: 590 Bytes
Versions: 20
Compression:
Stored size: 590 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
20 entries across 20 versions & 1 rubygems