facebook / chef-utils

Utilities related to Chef
Apache License 2.0
291 stars 79 forks source link

chefctl: implement `stop_or_wait_for_chef` #76

Closed jaymzh closed 4 years ago

jaymzh commented 5 years ago

Facebook, and presumably others, have scripts that do things like:

CHEFCTL_PATH = '/path/to/chefctl.rb'

require_relative CHEFCTL_PATH
Chefctl.lib.load_config(Chefctl::DEFAULT_CONFIG)
Chefctl.lib.check_user
Chefctl.lib.stop_or_wait_for_chef

Which of course is fragile and a bit hacky. Instead, lets just provide an option -w to chefctl that does this.

facebook-github-bot commented 4 years ago

@davide125 merged this pull request in facebook/chef-utils@a28ab4924298dbc2f5fab73df4be99e94b4d2761.