Sha256: 61535184b108884195f6437114eeafc62ecf05d9aab5b73f32751d636f5a2626
Contents?: true
Size: 293 Bytes
Versions: 20
Compression:
Stored size: 293 Bytes
Contents
class SlackSmartBot def update_repls(channel = @channel_id) require 'yaml' repl_file = "#{config.path}/repl/repls_#{channel}.yaml" File.open(repl_file, 'w') {|file| file.flock(File::LOCK_EX) file.write(@repls.to_yaml) file.flock(File::LOCK_UN) } end end
Version data entries
20 entries across 20 versions & 1 rubygems