Please sign in to comment.
Workaround for bundler swallowing the '--verbose' flag
Recent bundlers swallow the --verbose flag (bundler/issues#2102): 'bundle exec knife ... -VV' never does get the verbositoseness all the way to knife. I'm preparing a patch for bundler, but being blind to backtraces is horrible enough however that a workaround here is justifiable. If you specify '-Z' or '-ZZ' alone as an arg, it will be turned into '-V' or '-VV', resp. I hate monkeying around with ARGV, but a) knife already does so, and b) after some poking around inside knife I don't see a clean way to do this. This only patches up 'knife cluster' commands (things that include Ironfan::KnifeCommon). It also ignores any arguments that follow the string 'ssh' -- 'bundle exec knife -Z ssh awesomehood -Z' will be single verbose for knife and -Z for awesomehood.
- Loading branch information...
Showing with 13 additions and 0 deletions.