require 'clamp' require 'xcbootstrap/bootstrap' module XCBootstrap class Cli < Clamp::Command option ["-t", "--template"], "T", "name of the template to use", :required => true option ["-p", "--project"], "P", "relative path to the desired project to create", :required => true def execute template_root = File.expand_path(File.join(File.dirname(__FILE__), "../../templates")) bootstrapper = XCBootstrap::Bootstrap.new(template_root, template, project) bootstrapper.process bootstrapper.finish end end end