Class: DanarchyDeploy::System::CentOS

Inherits:
Object
  • Object
show all
Defined in:
lib/danarchy_deploy/system/centos.rb

Class Method Summary collapse

Class Method Details

.new(deployment, options) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/danarchy_deploy/system/centos.rb', line 5

def self.new(deployment, options)
  puts "\n" + self.name
  puts "#{deployment[:os].capitalize} detected! Using yum."
  # needs more testing

  set_hostname(deployment[:hostname]) if !options[:pretend]
  installer = 'yum install -y '
  updater = 'yum upgrade -y'
  cleaner = 'yum clean all'

  [installer, updater, cleaner]
end