Sha256: 455e1811d8ba62f710e3cae8d04d1c4e07ad810722fc7be36d38d3334238ec8f

Contents?: true

Size: 1.09 KB

Versions: 53

Compression:

Stored size: 1.09 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 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

53 entries across 53 versions & 1 rubygems

Version Path
takeltau-0.44.15 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.14 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.12 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.11 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.8 lib/takeltau/mutagen/check/cli.rb
takeltau-0.44.2 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.23 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.21 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.19 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.16 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.15 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.14 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.10 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.6 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.4 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.2 lib/takeltau/mutagen/check/cli.rb
takeltau-0.43.1 lib/takeltau/mutagen/check/cli.rb
takeltau-0.42.7 lib/takeltau/mutagen/check/cli.rb
takeltau-0.42.5 lib/takeltau/mutagen/check/cli.rb
takeltau-0.42.4 lib/takeltau/mutagen/check/cli.rb