Class: Cany::Dpkg::DebHelperRecipe

Inherits:
Recipe
  • Object
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

#initialize(*args) ⇒ DebHelperRecipe

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

#binaryObject



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

#buildObject



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

#cleanObject



12
13
14
# File 'lib/cany/dpkg/deb_helper_recipe.rb', line 12

def clean
  exec %w(dh clean)
end