class KPM::BaseInstaller

def install_kaui(specified_group_id = nil, specified_artifact_id = nil, specified_packaging = nil, specified_classifier = nil, specified_version = nil, specified_webapp_path = nil, bundles_dir = nil, force_download = false, verify_sha1 = true)

def install_kaui(specified_group_id = nil, specified_artifact_id = nil, specified_packaging = nil, specified_classifier = nil, specified_version = nil, specified_webapp_path = nil, bundles_dir = nil, force_download = false, verify_sha1 = true)
  group_id = specified_group_id || KPM::BaseArtifact::KAUI_GROUP_ID
  artifact_id = specified_artifact_id || KPM::BaseArtifact::KAUI_ARTIFACT_ID
  packaging = specified_packaging || KPM::BaseArtifact::KAUI_PACKAGING
  classifier = specified_classifier || KPM::BaseArtifact::KAUI_CLASSIFIER
  version = specified_version || LATEST_VERSION
  webapp_path = specified_webapp_path || KPM.root
  bundles_dir = Pathname.new(bundles_dir || DEFAULT_BUNDLES_DIR).expand_path
  sha1_file = "#{bundles_dir}/#{SHA1_FILENAME}"
  @logger.debug("Installing Kaui: group_id=#{group_id} artifact_id=#{artifact_id} packaging=#{packaging} classifier=#{classifier} version=#{version} webapp_path=#{webapp_path}")
  artifact_info = KPM::KauiArtifact.pull(@logger,
                                         group_id,
                                         artifact_id,
                                         packaging,
                                         classifier,
                                         version,
                                         webapp_path,
                                         sha1_file,
                                         force_download,
                                         verify_sha1,
                                         @nexus_config,
                                         @nexus_ssl_verify)
  # store trace info to be returned as JSON by the KPM::Installer.install method
  @trace_logger.add('kaui', nil,
                    artifact_info.merge('status' => (artifact_info[:skipped] ? 'UP_TO_DATE' : 'INSTALLED'),
                                        :group_id => group_id, :artifact_id => artifact_id, :packaging => packaging, :classifier => classifier))
end