Module: CemAcpt::Bootstrap::OperatingSystem

Included in:
Bootstrapper
Defined in:
lib/cem_acpt/bootstrap/operating_system.rb,
lib/cem_acpt/bootstrap/operating_system/rhel_family.rb

Overview

Currently unused in this implementation.

Defined Under Namespace

Modules: RhelFamily Classes: Error

Instance Method Summary collapse

Instance Method Details

#use_os(os) ⇒ Object

Currently unused in this implementation.



8
9
10
11
12
13
14
15
16
# File 'lib/cem_acpt/bootstrap/operating_system.rb', line 8

def use_os(os)
  case os
  when %r{^(centos|rhel)$}
    require_relative 'operating_system/rhel_family'
    self.class.include CemAcpt::Bootstrap::OperatingSystem::RhelFamily
  else
    raise Error, "Operating system #{os} is not supported"
  end
end