Class: OsCtld::DistConfig::CentOS

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

Instance Attribute Summary

Attributes inherited from Base

#ct, #distribution, #version

Instance Method Summary collapse

Methods inherited from RedHat

#do_create_netif, #do_remove_netif, #network, #remove_netif, #rename_netif, #set_hostname, #set_params

Methods inherited from Base

#add_netif, #bin_path, distribution, #dns_resolvers, #initialize, #network, #passwd, #remove_netif, #rename_netif, #set_hostname, #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

#template_dirObject (protected)



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

def template_dir
  if version.to_i >= 8
    'redhat_nm'
  else
    'redhat_initscripts'
  end
end