Class: ReactorCommands

Inherits:
Thor
  • Object
show all
Defined in:
lib/mavenReactorService/ReactorCommands.rb

Overview

This is controller class for reactor service #

Instance Method Summary collapse

Instance Method Details

#projectValidator(project_directory_path = Dir.getwd) ⇒ Object



51
52
53
54
# File 'lib/mavenReactorService/ReactorCommands.rb', line 51

def projectValidator(project_directory_path = Dir.getwd)
  reactorHandler = ReactorHandler.new
  reactorHandler.validateProjectsEligiblity(project_directory_path)
end

#reactorHandler(externalPomUrl = nil, project_directory_path = Dir.getwd) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/mavenReactorService/ReactorCommands.rb', line 28

def reactorHandler(externalPomUrl = nil, project_directory_path = Dir.getwd)
  reactorHandler = ReactorHandler.new
  cordinateArr = reactorHandler.checkIdenticalParent(project_directory_path)
  reactorHandler.createEffectivePom(project_directory_path,externalPomUrl)
  reactorHandler.makeReator(project_directory_path)
  reactorHandler.addParentInReactorPom(project_directory_path,cordinateArr)
  reactorHandler.managePlugins(project_directory_path)
  reactorHandler.plugiConfigHandler(project_directory_path)
  reactorHandler.moveCommonProperties(project_directory_path,externalPomUrl)
  reactorHandler.createDistributionManagmentInReactorPom(project_directory_path,externalPomUrl)
  reactorHandler.handleDeveloperAndContributors(project_directory_path)
  reactorHandler.mergeRepository(project_directory_path)
  reactorHandler.manageDepedency(project_directory_path)
  reactorHandler.handleInterDependency(project_directory_path)
  reactorHandler.handleTeamSpecificParent(project_directory_path,externalPomUrl)
  reactorHandler.dmpmForexternalConfiguration(project_directory_path,externalPomUrl)
  reactorHandler.removeTagsWithHardCodedPath(project_directory_path)
  reactorHandler.removeEmptyTags(project_directory_path)
  reactorHandler.sortPomExecutor()
end