Sha256: b5b43decfd22d40e23a16575966a27504c5fc6fe05eb061a18be303789f0cab7

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

module Cany
  module Dpkg
    class DebHelperRecipe < Cany::Recipe
      register_as :deb_helper

      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

      def clean
        exec %w(dh clean)
      end

      def build
        instance_eval &spec.build if spec.build
        exec %w(dh build)
      end

      def binary
        instance_eval &spec.binary if spec.binary
        File.write('debian/xikolo-account.debhelper.log', @log)
        exec %w(dh binary)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cany-0.0.1 lib/cany/dpkg/deb_helper_recipe.rb