# encoding: UTF-8

module Tetra
  # tetra generate-kit-archive
  class GenerateKitArchiveCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          result_path = Tetra::Kit.new(project).to_archive
          print_generation_result(project, result_path)
        end
      end
    end
  end
end

# encoding: UTF-8

module Tetra
  # tetra generate-kit-archive
  class GenerateKitArchiveCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          kit = Tetra::Kit.new(project)

          result_path = kit.to_archive
          print_generation_result(project, result_path)

          kit.maven_kit_items.each do |item|
            result_path = item.to_archive
            print_generation_result(project, result_path)
          end
        end
      end
    end
  end
end

Enable Maven kit item archive generation
Enable Maven kit item archive generation
