class Chef::Deployment::Monitor::MarkerFileSink
Attributes
file[R]
Public Class Methods
new(outfile)
click to toggle source
# File lib/chef_deployment_monitor/sinks.rb, line 14 def initialize(outfile) @file = outfile end
Public Instance Methods
receive(data)
click to toggle source
will modify the marker file last write data of marker file will be within 5 seconds of last deployement
# File lib/chef_deployment_monitor/sinks.rb, line 21 def receive(data) File.open(file, 'w+') do |f| f.write(data.to_json) end end