Sha256: 533d41a47f017a473695ffd066a9c2e882927809e4007a306a573a0014d932d5
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
module DanarchyDeploy module System class CentOS 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 private def self.set_hostname(hostname) `hostnamectl set-hostname #{hostname}` end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danarchy_deploy-0.2.11 | lib/danarchy_deploy/system/centos.rb |
danarchy_deploy-0.2.10 | lib/danarchy_deploy/system/centos.rb |