module MutagenSocketTidy

takeltau mutagen socket tidy

Public Instance Methods

mutagen_socket_tidy() click to toggle source

Backend method for mutagen socket tidy.

# File lib/takeltau/mutagen/socket/tidy.rb, line 6
def mutagen_socket_tidy
  log.debug "Remove the mutagen daemon files in container \"#{@hostname}\""

  container_existing = docker_container_check_existing @hostname
  cmd_remove = config.active['cmd_mutagen_forward_socket_remove']
  return false unless container_existing && cmd_remove.empty?

  unless docker_container_command cmd_remove
    log.error "Unable to remove the mutagen daemon files in container \"#{@hostname}\""
    return false
  end

  log.debug "Removed the mutagen daemon files in container \"#{@hostname}\""
  true
end