Sha256: 25ebc16a5b44cec0fc341303dcef99ca9994ad8f4511c606a7a8c9d39e79b950

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-kit-spec
  class GenerateKitSpecCommand < 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)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tetra-0.43.0 lib/tetra/commands/generate_kit_spec.rb
tetra-0.42.0 lib/tetra/commands/generate_kit_spec.rb
tetra-0.41.0 lib/tetra/commands/generate_kit_spec.rb