Sha256: efe856a917fbe0c9a43f07133b57aa8f736a3408bb6001db3652de5eb919d5b7

Contents?: true

Size: 746 Bytes

Versions: 7

Compression:

Stored size: 746 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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.5 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.4 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.3 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.2 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.1 lib/tetra/ui/generate_all_subcommand.rb
tetra-2.0.0 lib/tetra/ui/generate_all_subcommand.rb