Method: Puppet::Util::Storage.store
- Defined in:
- lib/puppet/util/storage.rb
.store ⇒ Object
80 81 82 83 84 85 86 87 88 |
# File 'lib/puppet/util/storage.rb', line 80 def self.store Puppet.debug "Storing state" Puppet.info _("Creating state file %{file}") % { file: Puppet[:statefile] } unless Puppet::FileSystem.exist?(Puppet[:statefile]) Puppet::Util.benchmark(:debug, "Stored state") do Puppet::Util::Yaml.dump(@@state, Puppet[:statefile]) end end |