Skip to content

Builds a dependency tree (inside out) from clusters of dependencies (outside in) in a string format with indented (2 spaces) branches.

Notifications You must be signed in to change notification settings

jrobertson/dependency_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Builds a dependency tree (inside out) from clusters of dependencies (outside in) in a string format with indented (2 spaces) branches.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages