Method: Puppet::IniProperty#sync

Defined in:
lib/vendor/puppet/type/yumrepo.rb

#syncObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/vendor/puppet/type/yumrepo.rb', line 16

def sync
  if safe_insync?(retrieve)
    result = nil
  else
    result = set(self.should)
    if should == :absent
      resource.section[inikey] = nil
    else
      resource.section[inikey] = should
    end
  end
  result
end