Sha256: 6644433ee49f79c8c3451b786284e4232296f72cdee93472d5a6ea872c82274e

Contents?: true

Size: 1.07 KB

Versions: 39

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau 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

      @workdir = Dir.getwd

      inside = _docker_container_lib_check_matrjoschka
      @hostname = inside ? ENV.fetch('HOSTNAME', nil) : _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

39 entries across 39 versions & 1 rubygems

Version Path
takeltau-0.45.8 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.6 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.5 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.4 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.3 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.2 lib/takeltau/mutagen/check/cli.rb
takeltau-0.45.0 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.42 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.41 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.39 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.37 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.36 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.35 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.29 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.27 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.24 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.23 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.19 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.18 lib/takeltau/mutagen/check/cli.rb