unicesi / amelia

:airplane: DSL for deploying distributed systems, with custom commands to compile and execute FraSCAti applications
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Allow to remove subsystems from a deployment #49

Open jachinte opened 7 years ago

jachinte commented 7 years ago

Let's consider this case:

deployment Deployment {
    // configure subsystems
    add(new Subsystem1())
    add(new Subsystem2())
    ...
    // Deploy all the subsystems
    start(true)

    // Deploy *some* subsystems
    // Remove some subsystems (or subsystem instances)
    start(true)
}

How can I remove subsystems before deploying the system the second time?