Class: Cany::Dpkg::DebHelperRecipe
- Inherits:
-
Recipe
- Object
- Recipe
- Cany::Dpkg::DebHelperRecipe
show all
- Defined in:
- lib/cany/dpkg/deb_helper_recipe.rb
Instance Attribute Summary
Attributes inherited from Recipe
#inner, #spec
Instance Method Summary
collapse
Methods inherited from Recipe
#exec, from_name, #install, #install_content, #install_dir, #install_link, register_as, #rmtree, #ruby_bin
Constructor Details
Returns a new instance of DebHelperRecipe.
6
7
8
9
10
|
# File 'lib/cany/dpkg/deb_helper_recipe.rb', line 6
def initialize(*args)
super *args
@log = File.read('debian/xikolo-account.debhelper.log') if File.exists? 'debian/xikolo-account.debhelper.log'
exec 'dh_prep'
end
|
Instance Method Details
#binary ⇒ Object
21
22
23
24
25
|
# File 'lib/cany/dpkg/deb_helper_recipe.rb', line 21
def binary
instance_eval &spec.binary if spec.binary
File.write("debian/#{spec.name}.debhelper.log", @log)
exec %w(dh binary)
end
|
#build ⇒ Object
16
17
18
19
|
# File 'lib/cany/dpkg/deb_helper_recipe.rb', line 16
def build
instance_eval &spec.build if spec.build
exec %w(dh build)
end
|
#clean ⇒ Object
12
13
14
|
# File 'lib/cany/dpkg/deb_helper_recipe.rb', line 12
def clean
exec %w(dh clean)
end
|