0.0
No commit activity in last 3 years
No release in over 3 years
A knife plugin to display dependency data for cookbooks used by a node
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

knife-depgraph

knife-depgraph is a knife plugin to display the dependency information for all the of the cookbooks used by a given node.

Installation

As with all knife plugins, just install the gem:

gem install knife-depgraph

If using ChefDK, run chef gem instead of gem.

Usage:

knife depgraph NODE

Produces output like:

{
  "7-zip": {
    "version": "1.0.2",
    "deps": {
      "windows": ">= 1.2.2"
    }
  },
  "annoyances": {
    "version": "0.1.3",
    "deps": {

    }
  },
  "apache2": {
    "version": "1.0.1",
    "deps": {

    }
  },
  "apt": {
    "version": "2.3.10",
    "deps": {

    }
  },

Capture it to a file with standard shell redirection:

bundle exec knife depgraph NODE > dep_graph.json

Diagnostic messages will be printed to stderr.

Acknowledgements

knife-depgraph is based on knife-solve by Noah Kantrowitz.

Thanks Noah!