Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffjentry committed Jul 21, 2015
1 parent 5ddb421 commit c4cca6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,24 @@ backend {
jes {
applicationName = "cromwell"
project = "broad-dsde-dev"
baseExecutionBucket = "gs://cromwell-dev/cromwell-executions"
}
}

google {
authScheme = "service" // Either "service" for service account or "user" for user-based, case insensitive

// If "user" you must supply:
// userAuth
// user
// secretsFile
// dataStoreDir (dir to cache oauth credentials)
// You will be asked to do the oauth browser dance

// If "service" you must supply:
// p12File
// serviceAccountId

userAuth {
user = "jgentry"
secretsFile = "/Users/jgentry/.google_client_secret.json"
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/cromwell/engine/backend/jes/JesBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ object JesBackend {
private lazy val JesConf = ConfigFactory.load.getConfig("backend").getConfig("jes")
lazy val GoogleProject = JesConf.getString("project")
lazy val GoogleApplicationName = JesConf.getString("applicationName")
lazy val CromwellExecutionBucket = JesConf.getString("baseExecutionBucket")

lazy val JesConnection = JesInterface(GoogleApplicationName)

Expand All @@ -36,8 +37,6 @@ object JesBackend {
val LocalStdoutValue = "job.stdout.txt"
val LocalStderrValue = "job.stderr.txt"

val CromwellExecutionBucket = "gs://cromwell-dev/cromwell-executions"

// Decoration around WorkflowDescriptor to generate bucket names and the like
implicit class JesWorkflowDescriptor(val descriptor: WorkflowDescriptor) extends AnyVal {
def bucket = s"$CromwellExecutionBucket/${descriptor.name}/${descriptor.id.toString}"
Expand Down

0 comments on commit c4cca6f

Please sign in to comment.