-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorge Aguilera <[email protected]>
- Loading branch information
Showing
5 changed files
with
237 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
plugins/nf-nomad/src/main/nextflow/nomad/config/ConstraintSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package nextflow.nomad.config | ||
|
||
class ConstraintSpec { | ||
|
||
private String attribute | ||
private String operator | ||
private String value | ||
|
||
String getOperator(){ | ||
return operator | ||
} | ||
|
||
String getAttribute() { | ||
return attribute | ||
} | ||
|
||
String getValue() { | ||
return value | ||
} | ||
|
||
ConstraintSpec attribute(String attribute){ | ||
this.attribute=attribute | ||
this | ||
} | ||
|
||
ConstraintSpec operator(String operator){ | ||
this.operator = operator | ||
this | ||
} | ||
|
||
ConstraintSpec value(String value){ | ||
this.value = value | ||
this | ||
} | ||
|
||
void validate(){ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.