Socket
Book a DemoInstallSign in
Socket

knife-swap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knife-swap

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Build Status Coverage Status Code Climate

Knife Swap

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.

Installation

chef gem install knife-swap

Requirements

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:

  • knife.rb
  • knife-name.rb
  • knife-another.rb
  • knife-soforth.rb

Usage

commanddescription
knife swapList 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 CONFIGSets your current knife.rb to the desired config.

Authors

License

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

Package last updated on 20 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.