particle-iot-archived / particle-dev-local-compiler

Package providing local compilation for Particle devices in Particle Dev
MIT License
11 stars 0 forks source link

Stop machine on quit #21

Closed kennethlimcp closed 7 years ago

kennethlimcp commented 8 years ago

Seems like kitematic managed to incorporate machine shutdown on application quitting.

We can study and do something similar in future.

https://github.com/docker/kitematic/blob/master/src/app.js#L67

https://github.com/docker/kitematic/blob/master/src/utils/DockerMachineUtil.js#L65

Seems like a trivial implementation by detecting the OS and piping the correct command to call docker-machine stop