Class: Machinery::Config

Inherits:
ConfigBase show all
Defined in:
lib/config.rb

Instance Attribute Summary

Attributes inherited from ConfigBase

#entries, #file

Instance Method Summary collapse

Methods inherited from ConfigBase

#each, #entry, #get, #initialize, #set

Constructor Details

This class inherits a constructor from Machinery::ConfigBase

Instance Method Details

#default_config_fileObject



24
25
26
# File 'lib/config.rb', line 24

def default_config_file
  ENV["MACHINERY_CONFIG_FILE"] || Machinery::DEFAULT_CONFIG_FILE
end

#define_entriesObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/config.rb', line 28

def define_entries
  entry("hints",
    default: true,
    description: "Show hints about usage of Machinery in the context of the commands ran by" \
      " the user"
       )
  entry("remote-user",
    default: "root",
    description: "Defines the user which is used to access the inspected system via SSH"
       )
  entry("experimental-features",
    default: false,
    description: "Enable experimental features. See " \
      "https://github.com/SUSE/machinery/wiki/Experimental-Features for more details"
       )
  entry("http_server_port",
    default: 7585,
    description: "TCP port used by the HTTP server for the HTML view"
       )
end

#deprecated_entriesObject



49
50
51
# File 'lib/config.rb', line 49

def deprecated_entries
  ["perform_support_check"]
end