Sha256: 6636eaab4b9d74cca79d6e8dbbe1363eecb76db7524760102873a41cd6de934e

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 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/#{spec.name}.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.2 lib/cany/dpkg/deb_helper_recipe.rb