Sha256: c78866bfec0620635c5ce3941ab62c6f2698374cc3ac1911e8b23013f62dbaa5

Contents?: true

Size: 1001 Bytes

Versions: 2

Compression:

Stored size: 1001 Bytes

Contents

# encoding: UTF-8

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

    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(false, project) do
          GenerateKitArchiveCommand.new(@invocation_path).execute

          GenerateKitSpecCommand.new(@invocation_path).execute

          script_command = GeneratePackageScriptCommand.new(@invocation_path)
          script_command.execute

          archive_command = GeneratePackageArchiveCommand.new(@invocation_path)
          archive_command.execute

          archive_command = GeneratePackageSpecCommand.new(@invocation_path)
          archive_command.filter = filter
          archive_command.pom = pom
          archive_command.execute
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tetra-0.43.0 lib/tetra/commands/generate_all.rb
tetra-0.42.0 lib/tetra/commands/generate_all.rb