Class: ForemanMaintain::Utils::MongoCoreInstalled
- Includes:
- Concerns::SystemHelpers
- Defined in:
- lib/foreman_maintain/utils/mongo_core.rb
Instance Attribute Summary collapse
-
#client_command ⇒ Object
readonly
Returns the value of attribute client_command.
-
#dump_command ⇒ Object
readonly
Returns the value of attribute dump_command.
-
#server_config_files ⇒ Object
readonly
Returns the value of attribute server_config_files.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize ⇒ MongoCoreInstalled
constructor
A new instance of MongoCoreInstalled.
Methods included from Concerns::SystemHelpers
#check_min_version, #clean_all_packages, #create_lv_snapshot, #directory_empty?, #downstream_installation?, #execute, #execute!, #execute?, #execute_with_status, #file_exists?, #find_dir_containing_file, #find_package, #find_symlinks, #format_shell_args, #get_lv_info, #get_lv_path, #hostname, included, #package_version, #packages_action, #parse_csv, #parse_json, #rpm_version, #server?, #service_exists?, #shellescape, #smart_proxy?, #systemd_installed?, #version
Methods included from Concerns::Finders
#check, #detector, #feature, #find_all_scenarios, #find_checks, #find_procedures, #find_scenarios, #procedure
Methods included from Concerns::Logger
Methods inherited from MongoCore
Constructor Details
#initialize ⇒ MongoCoreInstalled
Returns a new instance of MongoCoreInstalled.
51 52 53 54 55 56 57 58 |
# File 'lib/foreman_maintain/utils/mongo_core.rb', line 51 def initialize @services = {} @server_config_files = [] detect_mongo_default detect_mongo_34 raise ForemanMaintain::Error::Fail, 'Mongo client was not found' unless @client_command end |
Instance Attribute Details
#client_command ⇒ Object (readonly)
Returns the value of attribute client_command.
49 50 51 |
# File 'lib/foreman_maintain/utils/mongo_core.rb', line 49 def client_command @client_command end |
#dump_command ⇒ Object (readonly)
Returns the value of attribute dump_command.
49 50 51 |
# File 'lib/foreman_maintain/utils/mongo_core.rb', line 49 def dump_command @dump_command end |
#server_config_files ⇒ Object (readonly)
Returns the value of attribute server_config_files.
49 50 51 |
# File 'lib/foreman_maintain/utils/mongo_core.rb', line 49 def server_config_files @server_config_files end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
49 50 51 |
# File 'lib/foreman_maintain/utils/mongo_core.rb', line 49 def services @services end |