Module: MutagenSocketList

Included in:
Takelage::MutagenSocket
Defined in:
lib/takelage/mutagen/socket/list.rb

Overview

takelage mutagen socket list

Instance Method Summary collapse

Instance Method Details

#mutagen_socket_listString

Backend method for mutagen socket list.

Returns:

  • (String)

    List of takelage sockets



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/takelage/mutagen/socket/list.rb', line 7

def mutagen_socket_list
  log.debug 'List the mutagen takelage sockets'

  return false unless mutagen_check_daemon

  sockets = _mutagen_socket_list

  if sockets.to_s.empty?
    log.debug 'No mutagen takelage sockets found'
    return false
  end

  log.debug "Found mutagen takelage sockets: \n\"\"\"\n#{sockets}\"\"\""
  sockets.to_s
end