Skip to content

Commit

Permalink
Update resources.kt
Browse files Browse the repository at this point in the history
Substitute Path to Constants
  • Loading branch information
gmitch215 committed Jul 31, 2024
1 parent c23a7f8 commit d0c53e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/io/codemc/api/resources.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const val USER_CONFIG = "user-config"

val RESOURCE_CACHE = mutableMapOf<String, String>()
private val resources = mapOf(
"/templates/jenkins/job-freestyle.xml" to "job-freestyle",
"/templates/jenkins/job-maven.xml" to "job-maven",
"/templates/jenkins/user-config.xml" to "user-config",
"/templates/jenkins/job-freestyle.xml" to JOB_FREESTYLE,
"/templates/jenkins/job-maven.xml" to JOB_MAVEN,
"/templates/jenkins/user-config.xml" to USER_CONFIG,
)

suspend fun loadResources() = withContext(Dispatchers.IO) {
Expand Down

0 comments on commit d0c53e6

Please sign in to comment.