Sha256: 393fee59df55af444dd325929cf58f767bf2c2fd4533915e94ba7c30eca75a36
Contents?: true
Size: 826 Bytes
Versions: 20
Compression:
Stored size: 826 Bytes
Contents
# frozen_string_literal: true # takelage mutagen socket terminate module MutagenSocketTerminate # Backend method for mutagen socket terminate. def mutagen_socket_terminate(socket) log.debug "Terminate the mutagen socket \"#{socket}\"" return false unless mutagen_check_daemon socket_terminated = _mutagen_socket_terminate_socket socket unless socket_terminated.exitstatus.zero? log.debug "Unable to terminated mutagen socket \"#{socket}\"" return false end log.debug "Terminated the mutagen socket \"#{socket}\"" true end private # Get git branch. def _mutagen_socket_terminate_socket(socketname) cmd_terminate_socket = format( config.active['cmd_mutagen_forward_socket_terminate'], socketname: socketname ) try cmd_terminate_socket end end
Version data entries
20 entries across 20 versions & 1 rubygems