Class: Footman::Package::Rpm

Inherits:
Base
  • Object
show all
Defined in:
lib/footman/package/rpm.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Footman::Package::Base

Instance Method Details

#add_packageObject



15
16
17
# File 'lib/footman/package/rpm.rb', line 15

def add_package
  `createrepo #{config.repository}`
end

#cleanupObject



11
12
13
# File 'lib/footman/package/rpm.rb', line 11

def cleanup
  File.delete @file
end

#copy_packageObject



19
20
21
# File 'lib/footman/package/rpm.rb', line 19

def copy_package
	`cp #{@file} #{config.repository}/#{File.basename(@file)}`
end

#processObject



5
6
7
8
9
# File 'lib/footman/package/rpm.rb', line 5

def process
	copy_package
  add_package
  cleanup
end