Sha256: 4a10368bd13913e5753d243e9e0f378f06a619d2c3184c4a7cac861b29908fd1

Contents?: true

Size: 558 Bytes

Versions: 17

Compression:

Stored size: 558 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(: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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.5 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.4 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.3 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.2 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.1 lib/tetra/ui/generate_kit_subcommand.rb
tetra-2.0.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-1.2.2 lib/tetra/ui/generate_kit_subcommand.rb
tetra-1.2.1 lib/tetra/ui/generate_kit_subcommand.rb
tetra-1.2.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-1.1.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-1.0.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.54.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.53.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.52.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.51.0 lib/tetra/ui/generate_kit_subcommand.rb
tetra-0.50.0 lib/tetra/ui/generate_kit_subcommand.rb