RAP is a tool that lets you analyse Ampersand models, generate functional specifications and make prototypes of information systems. It is the primary tool for students of the Open University of the Netherlands in the course Rule Based Design.
5
stars
3
forks
source link
Refactor shell script in RAP for student prototype image #367
Issue:
The student prototype image uses a shell script on start-up. As the image is used for both the docker and the kubernetes deployment some conditional statements were added. This made the script harder to read and adjust.
Solution:
Refactor the script to make use of functions. This way we have a clear flow and if changes need to be made, a function can be adjusted or added accordingly.
Issue: The student prototype image uses a shell script on start-up. As the image is used for both the docker and the kubernetes deployment some conditional statements were added. This made the script harder to read and adjust.
Solution: Refactor the script to make use of functions. This way we have a clear flow and if changes need to be made, a function can be adjusted or added accordingly.