Sha256: b0b7cdd5fe99cc437fa9f4157db3f25a429a5d2dd0693bc86fa96b0686ebf8aa
Contents?: true
Size: 990 Bytes
Versions: 10
Compression:
Stored size: 990 Bytes
Contents
# frozen_string_literal: true require "cobra_commander/dependencies" require "cobra_commander/component" require "cobra_commander/umbrella" require "cobra_commander/version" # Tools for working with Component Based Rails Apps (see http://shageman.github.io/cbra.info/). # Includes tools for graphing the components of an app and their relationships, as well as selectively # testing components based on changes made. module CobraCommander UMBRELLA_APP_NAME = "App" def self.umbrella(root_path, yarn: false, bundler: false, name: UMBRELLA_APP_NAME) umbrella = Umbrella.new(name, root_path) umbrella.add_source(:yarn, Dependencies::YarnWorkspace.new(root_path)) unless bundler umbrella.add_source(:bundler, Dependencies::Bundler.new(root_path)) unless yarn umbrella end def self.umbrella_tree(path) CalculatedComponentTree.new(UMBRELLA_APP_NAME, path) end def self.tree_from_cache(cache_file) CachedComponentTree.from_cache_file(cache_file) end end
Version data entries
10 entries across 10 versions & 1 rubygems