Sha256: 0f624f0446e69d821d6da24f0bdc9f2c25409716eec48288c2c16de7a7d5ee8f

Contents?: true

Size: 813 Bytes

Versions: 10

Compression:

Stored size: 813 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(:has_finished, 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

10 entries across 10 versions & 1 rubygems

Version Path
tetra-1.2.2 lib/tetra/ui/generate_all_subcommand.rb
tetra-1.2.1 lib/tetra/ui/generate_all_subcommand.rb
tetra-1.2.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-1.1.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-1.0.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-0.54.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-0.53.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-0.52.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-0.51.0 lib/tetra/ui/generate_all_subcommand.rb
tetra-0.50.0 lib/tetra/ui/generate_all_subcommand.rb