Sha256: a6709a7cd405f84ff708b85f551961200ef5bafe440b2b554efc6e42840a1b22

Contents?: true

Size: 541 Bytes

Versions: 7

Compression:

Stored size: 541 Bytes

Contents

# encoding: UTF-8

module Tetra
  # tetra mvn
  class MavenCommand < Tetra::BaseCommand
    parameter "[MAVEN OPTIONS] ...", "mvn options", attribute_name: "dummy"

    # override parsing in order to pipe everything to mvn
    # rubocop:disable TrivialAccessors
    def parse(args)
      @options = args
    end

    def execute
      checking_exceptions do
        project = Tetra::Project.new(".")
        ensure_dry_running(true, project) do
          Tetra::MavenRunner.new(project).mvn(@options)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tetra-0.46.0 lib/tetra/commands/mvn.rb
tetra-0.45.0 lib/tetra/commands/mvn.rb
tetra-0.44.0 lib/tetra/commands/mvn.rb
tetra-0.43.0 lib/tetra/commands/mvn.rb
tetra-0.42.0 lib/tetra/commands/mvn.rb
tetra-0.41.0 lib/tetra/commands/mvn.rb
tetra-0.40.0 lib/tetra/commands/mvn.rb