
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Knife Swap was created to manage multiple knife configurations. This functionality exists in knife-block, which I am a huge fan of, but it doesn't seem to have Windows support because of the way it works under the hood.
Needing something that works in both Linux and Windows, I decided to create my own plugin. This currently does not swap the Berkshelf config files. If there's a need for it, please feel free to open an issue.
chef gem install knife-swap
Knife Swap assumes your knife.rb files are set the way knife-block expects them to be with a small difference.
The knife configuration files would still be named knife-name.rb, but knife.rb is no longer a symlink. So, they would be set up like this:
command | description |
---|---|
knife swap | List the current selected knife config as well as the available configurations. For whatever reason you have multiple knife configurations that are exactly the same but just named differently, the console will show you that you've currently selected multiple configs. |
knife swap CONFIG | Sets your current knife.rb to the desired config. |
License: | Apache License, Version 2.0 |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Unknown package
We found that knife-swap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.