Sha256: 0f2629359e4e31532a6830facf2a1f7a9fcf9c7365af84d79540fc3e25e56289

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-spec
  class GenerateSpecSubcommand < Tetra::Subcommand
    option %w(-f --filter), "FILTER", "filter files to be installed by this spec", default: "*.jar"
    parameter "[POM]", "a pom file path", default: "pom.xml"

    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          result_path, conflict_count =
            Tetra::Package.new(project, pom, filter).to_spec
          print_generation_result(project, result_path, conflict_count)
        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_spec_subcommand.rb
tetra-0.48.0 lib/tetra/ui/generate_spec_subcommand.rb