#!/usr/bin/env ruby # -*- coding: utf-8 -*- #require 'bundler/setup' require 'cany' require 'cany/dpkg/creator' require 'cany/dpkg/builder' tasks = { 'dpkg-create' => Cany::Dpkg::Creator, 'dpkg-builder' => Cany::Dpkg::Builder } unless tasks.include? ARGV.first puts 'Unknown subaction - choose from ' + tasks.keys.join(', ') exit 1 end tasks[ARGV.shift].new(Cany::setup '.').run *ARGV