Class: OsCtld::DistConfig::Distributions::Other

Inherits:
Base
  • Object
show all
Includes:
OsCtl::Lib::Utils::Log
Defined in:
lib/osctld/dist_config/distributions/other.rb

Instance Attribute Summary

Attributes inherited from Base

#configurator, #ct, #ctrc, #distribution, #version

Instance Method Summary collapse

Methods inherited from Base

#add_netif, #apply_hostname, #bin_path, distribution, #dns_resolvers, #initialize, #log_type, #passwd, #post_mount, #pre_start, #remove_netif, #rename_netif, #start, #stop, #unset_etc_hosts, #update_etc_hosts, #volatile_is_systemd?, #with_rootfs

Methods included from Utils::SwitchUser

#ct_attach, #ct_syscmd

Constructor Details

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

Instance Method Details

#configurator_classObject



10
11
12
# File 'lib/osctld/dist_config/distributions/other.rb', line 10

def configurator_class
  DistConfig::Configurator
end

#network(_opts = {}) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/osctld/dist_config/distributions/other.rb', line 22

def network(_opts = {})
  log(
    :warn,
    ct,
    "Unable to configure network: #{ctrc.distribution} not supported"
  )
end

#set_hostname(_opts = {}) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/osctld/dist_config/distributions/other.rb', line 14

def set_hostname(_opts = {})
  log(
    :warn,
    ct,
    "Unable to set hostname: #{ctrc.distribution} not supported"
  )
end