azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
897 stars 63 forks source link

[kernel] azk restart -R command not provisioning all systems #530

Open saitodisse opened 8 years ago

saitodisse commented 8 years ago

https://github.com/saitodisse/sandbox-azk/blob/master/Azkfile.js

systems({
  site1: {
    depends: [],
    image: {"docker": "azukiapp/node"},
    provision: [ "npm install" ],
    ...
  },

  site2: {
    extends: 'site1',
    depends: ['site1'],
  },

  site3: {
    extends: 'site1'
  },
});

(OK) azk start -R

Just works as expected

$ azk start -R

image everything works as expected, 3 systems provisioned


(bug) azk restart -R

$ azk restart -R

image site1 was not provisioned

gullitmiranda commented 8 years ago

suggested by @slobo in gitter:

I'd suggest next release to error out or output a warning message when -R is used without system name if the bug can't be addressed

slobo commented 8 years ago

(btw, I'd prefer an error with exit status != 0 since it would help me catch the error very quickly)