Class: Chef::Deployment::Monitor::MarkerFileSink
- Defined in:
- lib/chef_deployment_monitor/sinks.rb
Instance Method Summary collapse
-
#receive(data) ⇒ Object
will modify the marker file last write data of marker file will be within 5 seconds of last deployement.
Instance Method Details
#receive(data) ⇒ Object
will modify the marker file last write data of marker file will be within 5 seconds of last deployement
29 30 31 32 33 |
# File 'lib/chef_deployment_monitor/sinks.rb', line 29 def receive(data) File.open(Monitor::Config[:marker_file], 'w+') do |f| f.write(data['user']) end end |