Method: Bosh::Agent::Settings#cache

Defined in:
lib/bosh_agent/settings.rb

#cacheObject



32
33
34
35
36
37
# File 'lib/bosh_agent/settings.rb', line 32

def cache
  json = Yajl::Encoder.encode(@settings)
  File.open(@cache_file, 'w') do |file|
    file.write(json)
  end
end