Method: Flydata::Command::Sync#clear
- Defined in:
- lib/flydata/command/sync.rb
#clear ⇒ Object
Command: flydata sync:clear
- Entry method
296 297 298 299 300 301 302 303 304 305 306 |
# File 'lib/flydata/command/sync.rb', line 296 def clear sender = Flydata::Command::Sender.new(opts) sender.stop(auto_create: true) if ask_yes_no("This clears buffer and positions directory. Are you sure?") Flydata::SyncFileManager.clear_sync_client_resources log_info_stdout("Done!") end rescue => e log_error_stderr("[error] Failed to clear - error:\"#{e}\"") raise e end |