Class: OsCtld::DistConfig::Fedora

Inherits:
RedHat show all
Defined in:
lib/osctld/dist_config/fedora.rb

Instance Attribute Summary

Attributes inherited from Base

#ct, #ctrc, #distribution, #version

Instance Method Summary collapse

Methods inherited from RedHat

#do_create_netif, #do_remove_netif, #generate_nm_conf, #network, #remove_netif, #rename_netif, #set_hostname, #set_params, #template_dir, #use_initscripts?, #use_nm?

Methods inherited from Base

#add_netif, #bin_path, distribution, #dns_resolvers, #initialize, #network, #passwd, #remove_netif, #rename_netif, #set_hostname, #stop, #update_etc_hosts, #writable?

Methods included from Utils::SwitchUser

#ct_attach, #ct_syscmd

Constructor Details

This class inherits a constructor from OsCtld::DistConfig::Base

Instance Method Details

#config_backendObject (protected)



8
9
10
11
12
13
14
# File 'lib/osctld/dist_config/fedora.rb', line 8

def config_backend
  if version.to_i >= 30
    :network_manager
  else
    :initscripts
  end
end