# File lib/puppet/util/storage.rb, line 85
85:   def self.store
86:     Puppet.debug "Storing state"
87: 
88:     Puppet.info "Creating state file #{Puppet[:statefile]}" unless FileTest.exist?(Puppet[:statefile])
89: 
90:     Puppet::Util.benchmark(:debug, "Stored state") do
91:       Puppet::Util::FileLocking.writelock(Puppet[:statefile], 0660) do |file|
92:         file.print YAML.dump(@@state)
93:       end
94:     end
95:   end