Sha256: 631b5f2eecbb66fdfaf8ef6308ff9d27f7dc423e980a920e2f2214913e244ef1

Contents?: true

Size: 791 Bytes

Versions: 3

Compression:

Stored size: 791 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
          GenerateKitCommand.new(@invocation_path).execute

          GenerateScriptCommand.new(@invocation_path).execute

          GenerateArchiveCommand.new(@invocation_path).execute

          command = GenerateSpecCommand.new(@invocation_path)
          command.filter = filter
          command.pom = pom
          command.execute
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tetra-0.46.0 lib/tetra/commands/generate_all.rb
tetra-0.45.0 lib/tetra/commands/generate_all.rb
tetra-0.44.0 lib/tetra/commands/generate_all.rb