Class: Gjp::MavenCommand

Inherits:
BaseCommand show all
Defined in:
lib/gjp/commands/mvn.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#checking_exceptions, #configure_log_level, #ensure_dry_running, #format_path, #print_generation_result, #verbose=, #very_verbose=, #very_very_verbose=

Methods included from Logging

#log

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
# File 'lib/gjp/commands/mvn.rb', line 12

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

#parse(args) ⇒ Object

override parsing in order to pipe everything to mvn



8
9
10
# File 'lib/gjp/commands/mvn.rb', line 8

def parse(args)
  @options = args
end