Class: FPM::Cookery::Package::PEAR
- Inherits:
-
Package
- Object
- Package
- FPM::Cookery::Package::PEAR
show all
- Defined in:
- lib/fpm/cookery/package/pear.rb
Instance Attribute Summary
Attributes inherited from Package
#config, #fpm, #recipe
Instance Method Summary
collapse
Methods inherited from Package
#add_script, #cleanup, #convert, #epoch=, #initialize, #maintainer=, #vendor=, #version=
Instance Method Details
#fpm_object ⇒ Object
8
9
10
|
# File 'lib/fpm/cookery/package/pear.rb', line 8
def fpm_object
FPM::Package::PEAR.new
end
|
20
21
22
|
# File 'lib/fpm/cookery/package/pear.rb', line 20
def package_input
fpm.input(recipe.name)
end
|
#package_setup ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/fpm/cookery/package/pear.rb', line 12
def package_setup
fpm.version = recipe.version
fpm.attributes[:pear_package_name_prefix] = recipe.pear_package_name_prefix unless recipe.pear_package_name_prefix.nil?
fpm.attributes[:pear_channel] = recipe.pear_channel unless recipe.pear_channel.nil?
fpm.attributes[:pear_php_dir] = recipe.pear_php_dir unless recipe.pear_php_dir.nil?
end
|