Sha256: 5c607d2acc44dab6fc69a1733e9d1685ccfd1d204a9f814a847088a6d1375644

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-kit
  class GenerateKitCommand < Tetra::BaseCommand
    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          Tetra::Kit.new(project).items.each do |item|
            result_path, conflict_count = item.to_spec
            print_generation_result(project, result_path, conflict_count)

            result_path = item.to_archive
            print_generation_result(project, result_path)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.45.0 lib/tetra/commands/generate_kit.rb
tetra-0.44.0 lib/tetra/commands/generate_kit.rb