Class: Footman::Package::Rpm
- Inherits:
-
Base
- Object
- Base
- Footman::Package::Rpm
show all
- Defined in:
- lib/footman/package/rpm.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#add_package ⇒ Object
15
16
17
|
# File 'lib/footman/package/rpm.rb', line 15
def add_package
`createrepo #{config.repository}`
end
|
#cleanup ⇒ Object
11
12
13
|
# File 'lib/footman/package/rpm.rb', line 11
def cleanup
File.delete @file
end
|
#copy_package ⇒ Object
19
20
21
|
# File 'lib/footman/package/rpm.rb', line 19
def copy_package
`cp #{@file} #{config.repository}/#{File.basename(@file)}`
end
|
#process ⇒ Object
5
6
7
8
9
|
# File 'lib/footman/package/rpm.rb', line 5
def process
copy_package
add_package
cleanup
end
|