Sha256: ba18471c2f80bbf1d2dae1fb961aa7673b25b9cbefae96f0914531fd03fee5ad

Contents?: true

Size: 805 Bytes

Versions: 2

Compression:

Stored size: 805 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra generate-all
  class GenerateAllSubcommand < Tetra::Subcommand
    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
          GenerateKitSubcommand.new(@invocation_path).execute

          GenerateScriptSubcommand.new(@invocation_path).execute

          GenerateArchiveSubcommand.new(@invocation_path).execute

          command = GenerateSpecSubcommand.new(@invocation_path)
          command.filter = filter
          command.pom = pom
          command.execute
        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_all_subcommand.rb
tetra-0.48.0 lib/tetra/ui/generate_all_subcommand.rb