Sha256: 0a95fccef2a27d4b6af85d54f991f061299195559b8c8efbf9b188cb7adfcf70

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

module Takeltau
  # takeltau mutagen check
  class MutagenCheck < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckDaemon
    include DockerContainerCheckExisting
    include DockerContainerCheckNetwork
    include DockerContainerCommand
    include DockerContainerLib
    include MutagenCheckDaemon

    # Initialize mutagen check
    def initialize(args = [], local_options = {}, configuration = {})
      # initialize thor parent class
      super args, local_options, configuration

      @workdir = Dir.getwd

      inside = _docker_container_lib_check_matrjoschka
      @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname
      @hostlabel = "hostname=#{@hostname}"
    end

    #
    # mutagen check daemon
    #
    desc 'daemon', 'Check if mutagen host conenction is available'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Check if mutagen host conenction is available
    LONGDESC
    # Check if mutagen host conenction is available.
    def daemon
      exit mutagen_check_daemon
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
takeltau-0.34.15 lib/takeltau/mutagen/check/cli.rb
takeltau-0.34.14 lib/takeltau/mutagen/check/cli.rb
takeltau-0.34.13 lib/takeltau/mutagen/check/cli.rb
takeltau-0.34.12 lib/takeltau/mutagen/check/cli.rb
takeltau-0.34.11 lib/takeltau/mutagen/check/cli.rb
takeltau-0.34.9 lib/takeltau/mutagen/check/cli.rb