Sha256: 2e01b056eb67cfe72b725ae91d59b5ae166a414e975bef5c794799f73653cf6e

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

# encoding: UTF-8

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.49.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.48.0 lib/tetra/ui/generate_kit_subcommand.rb