Module: CobraCommander

Defined in:
lib/cobra_commander.rb,
lib/cobra_commander/cli.rb,
lib/cobra_commander/change.rb,
lib/cobra_commander/version.rb,
lib/cobra_commander/affected.rb,
lib/cobra_commander/executor.rb,
lib/cobra_commander/umbrella.rb,
lib/cobra_commander/component.rb,
lib/cobra_commander/output/flat_list.rb,
lib/cobra_commander/output/graph_viz.rb,
lib/cobra_commander/output/ascii_tree.rb,
lib/cobra_commander/executor/multi_exec.rb,
lib/cobra_commander/dependencies/bundler.rb,
lib/cobra_commander/executor/component_exec.rb,
lib/cobra_commander/dependencies/yarn/package.rb,
lib/cobra_commander/dependencies/yarn_workspace.rb,
lib/cobra_commander/dependencies/yarn/package_repo.rb

Overview

Tools for working with Component Based Rails Apps (see 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.

Defined Under Namespace

Modules: Dependencies, Executor, Output Classes: Affected, CLI, Change, Component, Umbrella

Constant Summary collapse

UMBRELLA_APP_NAME =
"App"
VERSION =
"0.9.0"

Class Method Summary collapse

Class Method Details

.tree_from_cache(cache_file) ⇒ Object



25
26
27
# File 'lib/cobra_commander.rb', line 25

def self.tree_from_cache(cache_file)
  CachedComponentTree.from_cache_file(cache_file)
end

.umbrella(root_path, yarn: false, bundler: false, name: UMBRELLA_APP_NAME) ⇒ Object



14
15
16
17
18
19
# File 'lib/cobra_commander.rb', line 14

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

.umbrella_tree(path) ⇒ Object



21
22
23
# File 'lib/cobra_commander.rb', line 21

def self.umbrella_tree(path)
  CalculatedComponentTree.new(UMBRELLA_APP_NAME, path)
end