Class: Cyclid::API::Plugins::RHEL

Inherits:
Provisioner show all
Includes:
Helpers::Redhat
Defined in:
app/cyclid/plugins/provisioner/rhel.rb

Overview

RHEL provisioner

Instance Method Summary collapse

Methods included from Helpers::Redhat

#import_signing_key, #install_yum_utils, #prepare_fedora_dnf, #prepare_fedora_yum, #prepare_redhat, #prepare_redhat_5, #quiet, #yum_add_repo, #yum_groupinstall, #yum_install

Methods inherited from Provisioner

human_name

Methods inherited from Base

config?, config_schema, default_config, get_config, human_name, register_plugin, set_config, update_config

Constructor Details

#initializeRHEL

Returns a new instance of RHEL.



26
27
28
# File 'app/cyclid/plugins/provisioner/rhel.rb', line 26

def initialize
  @quiet = true
end

Instance Method Details

#prepare(transport, buildhost, env = {}) ⇒ Object

Prepare a RHEL based build host



31
32
33
34
35
36
37
38
39
40
41
42
# File 'app/cyclid/plugins/provisioner/rhel.rb', line 31

def prepare(transport, buildhost, env = {})
  release = buildhost[:release].to_i

  Cyclid.logger.debug 'is RHEL'
  if release >= 6
    Cyclid.logger.debug 'is >= 6'
    prepare_redhat(transport, env)
  else
    Cyclid.logger.debug 'is < 5'
    prepare_redhat_5(transport, env)
  end
end