Method: Docman::Application#write_state
- Defined in:
- lib/application.rb
#write_state(state) ⇒ Object
189 190 191 192 |
# File 'lib/application.rb', line 189 def write_state state filepath = File.join(@workspace_dir, 'state') File.open(filepath, 'w') { |file| file.write(state) } end |