# File lib/puppet/util/storage.rb, line 94 94: def self.store 95: Puppet.debug "Storing state" 96: 97: unless FileTest.exist?(Puppet[:statefile]) 98: Puppet.info "Creating state file %s" % Puppet[:statefile] 99: end 100: 101: Puppet::Util.benchmark(:debug, "Stored state") do 102: Puppet::Util::FileLocking.writelock(Puppet[:statefile], 0660) do |file| 103: file.print YAML.dump(@@state) 104: end 105: end 106: end