Class: OsCtld::DistConfig::CentOS
- Defined in:
- lib/osctld/dist_config/centos.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #template_dir ⇒ Object protected
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
Constructor Details
This class inherits a constructor from OsCtld::DistConfig::Base
Instance Method Details
#template_dir ⇒ Object (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 |