Skip to content

Commit

Permalink
Push works
Browse files Browse the repository at this point in the history
  • Loading branch information
cheroliv committed Sep 24, 2024
1 parent 6c37505 commit 0a75604
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
17 changes: 8 additions & 9 deletions buildSrc/src/main/kotlin/workspace/git/models.kt
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package workspace.git


object RepositoryInfo {
const val ORIGIN = "origin"
const val CNAME = "CNAME"
const val REMOTE = "remote"
}

data class RepositoryConfiguration(
val name: String,
val repository: String,
val credentials: RepositoryCredentials,
) {
companion object {
const val ORIGIN = "origin"
const val CNAME = "CNAME"
const val REMOTE = "remote"
}
}
)

data class RepositoryCredentials(
val username: String, val password: String
val username: String,
val password: String
)

data class GitPushConfiguration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.Project
import workspace.git.FileOperationResult
import workspace.git.FileOperationResult.Failure
import workspace.git.FileOperationResult.Success
import workspace.git.RepositoryConfiguration.Companion.CNAME
import workspace.git.RepositoryInfo.CNAME
import workspace.WorkspaceManager.bakeDestDirPath
import workspace.WorkspaceManager.localConf
import workspace.WorkspaceUtils.sep
Expand Down
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/workspace/jbake/models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package workspace.jbake

import workspace.git.GitPushConfiguration

//object SiteInfo{}

data class SiteConfiguration(
val bake: BakeConfiguration,
val pushPage: GitPushConfiguration,
Expand Down

0 comments on commit 0a75604

Please sign in to comment.