Here you'd want to use a version-control adapter that can require and use arbitrary library code. See comment below re: gem dependency