# encoding: UTF-8 module Tetra # tetra generate-kit class GenerateKitSubcommand < Tetra::Subcommand def execute checking_exceptions do project = Tetra::Project.new(".") ensure_dry_running(:has_finished, project) do kit = Tetra::KitPackage.new(project) result_path, conflict_count = kit.to_spec print_generation_result(project, result_path, conflict_count) result_path = project.archive_kit print_generation_result(project, result_path) end end end end end