Sha256: b6167fb53bd12d8427642d75b93f2ba8922aca92f02ed6ac9595f28d79ef07fa

Contents?: true

Size: 699 Bytes

Versions: 6

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

# takeltau mutagen socket tidy
module MutagenSocketTidy
  # Backend method for mutagen socket tidy.
  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
takeltau-0.34.15 lib/takeltau/mutagen/socket/tidy.rb
takeltau-0.34.14 lib/takeltau/mutagen/socket/tidy.rb
takeltau-0.34.13 lib/takeltau/mutagen/socket/tidy.rb
takeltau-0.34.12 lib/takeltau/mutagen/socket/tidy.rb
takeltau-0.34.11 lib/takeltau/mutagen/socket/tidy.rb
takeltau-0.34.9 lib/takeltau/mutagen/socket/tidy.rb