54 lines
No EOL
1.2 KiB
Markdown
54 lines
No EOL
1.2 KiB
Markdown
# Build Frontend with application and domain
|
|
|
|
```mermaid
|
|
classDiagram
|
|
class DevopsBuild {
|
|
__init__(project, config)
|
|
do_sth(project)
|
|
}
|
|
|
|
class ProjectRepository {
|
|
get_build(project): Build
|
|
set_build(project, build)
|
|
}
|
|
|
|
class Build
|
|
|
|
class BuildService {
|
|
do_sth(project, build)
|
|
}
|
|
|
|
DevopsBuild *-- BuildService
|
|
BuildService *-- ProjectRepository
|
|
DevopsBuild *-- ProjectRepository
|
|
|
|
```
|
|
|
|
In case of simple operations we will not need the BuildService in between.
|
|
|
|
|
|
## Init Sequence
|
|
|
|
```mermaid
|
|
sequenceDiagram
|
|
MyBuild ->> DevOpsBuild: create_config
|
|
MyBuild ->> DevOpsBuild: __init__(project, config)
|
|
activate DevOpsBuild
|
|
DevOpsBuild ->> Build: __init__
|
|
DevOpsBuild ->> ProjectRepository: set_build(build)
|
|
deactivate DevOpsBuild
|
|
```
|
|
|
|
## do_sth Sequence
|
|
|
|
```mermaid
|
|
sequenceDiagram
|
|
MyBuild ->> DevOpsBuild: do_sth(project)
|
|
activate DevOpsBuild
|
|
DevOpsBuild ->> BuildService: do_sth(project)
|
|
activate BuildService
|
|
BuildService ->> ProjectRepository: get_build
|
|
BuildService ->> BuildService: do_some_complicated_stuff(build)
|
|
deactivate BuildService
|
|
deactivate DevOpsBuild
|
|
``` |