Module: MutagenSocketCheck
- Included in:
- Takelage::DockerContainer, Takelage::MutagenSocket
- Defined in:
- lib/takelage/mutagen/socket/check.rb
Overview
takelage mutagen socket check
Instance Method Summary collapse
-
#mutagen_socket_check(socket) ⇒ Boolean
Backend method for mutagen socket check.
Instance Method Details
#mutagen_socket_check(socket) ⇒ Boolean
Backend method for mutagen socket check.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/takelage/mutagen/socket/check.rb', line 7 def mutagen_socket_check(socket) log.debug "Check if the mutagen socket \"#{socket}\" exists" return false unless mutagen_check_daemon socket_exists = _mutagen_socket_check_socket(socket) unless socket_exists.exitstatus.zero? log.debug "A mutagen socket \"#{socket}\" does not exist" return false end log.debug "The mutagen socket \"#{socket}\" does exist" true end |