Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 597 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 597 Bytes

Knife-Switcher

An easy way to switch knife.rb configurations for chef without knife block, knife sharp, ruby or gems (for the switching). Cygwin compatible.

Installation:

git clone, then copy to /bin/

Run chmod +x /bin/knife-switcher

Make sure you:

  • you do not have a file named knife.rb
  • you do have your files named as knife-[server name here].rb
  • have your configurations/rb files in ~/.chef/

Flags:

-y prevents prompt to confirm overwrite of knife.rb

Notes:

I like to alias this as ku alias ku='knife-switcher -y'