No commit activity in last 3 years
No release in over 3 years
Builds a dependency tree (inside out) from clusters of dependencies (outside in) in a string format with indented (2 spaces) branches.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.1, ~> 0.6
 Project Readme

Introducing the dependency_builder gem

require 'dependency_builder'

s = "
ra0
  sshfs
  apache

rse
  spspublog
  reg
  apache
  sps

elis
  ra0

reg
  sshfs
"

dbuild = DependencyBuilder.new(s)
puts dbuild.to_s

In the above example the input string contained a listing of nested dependencies for each service. The dependency_builder gem groups the services around each dependency as show in the output below.

Output:

sshfs
  ra0
    elis
  reg
    rse
apache
  ra0
  rse
spspublog
  rse
sps
  rse

Resources

dependency_builder dependency builder linetree gem