Module: DepsGrapher

Defined in:
lib/deps_grapher.rb,
lib/deps_grapher/cli.rb,
lib/deps_grapher/dsl.rb,
lib/deps_grapher/vis.rb,
lib/deps_grapher/edge.rb,
lib/deps_grapher/node.rb,
lib/deps_grapher/event.rb,
lib/deps_grapher/graph.rb,
lib/deps_grapher/input.rb,
lib/deps_grapher/layer.rb,
lib/deps_grapher/errors.rb,
lib/deps_grapher/source.rb,
lib/deps_grapher/context.rb,
lib/deps_grapher/logging.rb,
lib/deps_grapher/matcher.rb,
lib/deps_grapher/version.rb,
lib/deps_grapher/vis/box.rb,
lib/deps_grapher/vis/dot.rb,
lib/deps_grapher/cytoscape.rb,
lib/deps_grapher/cache_file.rb,
lib/deps_grapher/plugin_dsl.rb,
lib/deps_grapher/visualizer.rb,
lib/deps_grapher/html_writer.rb,
lib/deps_grapher/command/init.rb,
lib/deps_grapher/source_cache.rb,
lib/deps_grapher/ast_processor.rb,
lib/deps_grapher/configuration.rb,
lib/deps_grapher/plugin_loader.rb,
lib/deps_grapher/cytoscape/cose.rb,
lib/deps_grapher/cytoscape/klay.rb,
lib/deps_grapher/layer/registry.rb,
lib/deps_grapher/cytoscape/fcose.rb,
lib/deps_grapher/visualizer/base.rb,
lib/deps_grapher/command/analyzer.rb,
lib/deps_grapher/visualizer/color.rb,
lib/deps_grapher/graphile/generator.rb,
lib/deps_grapher/visualizer/registry.rb,
lib/deps_grapher/ast_processor_policy.rb,
lib/deps_grapher/visualizer/js_option.rb,
lib/deps_grapher/source_cache/registry.rb,
lib/deps_grapher/visualizer/downloader.rb,
lib/deps_grapher/visualizer/color/registry.rb,
lib/deps_grapher/visualizer/command_option.rb,
lib/deps_grapher/source_cache/class_name_extractor.rb

Defined Under Namespace

Modules: Command, Graphile, Logging, PluginDSL, Visualizer Classes: AstProcessor, AstProcessorPolicy, CacheFile, Cli, Configuration, Context, Cytoscape, DSL, Edge, Error, Event, Graph, HtmlWriter, Input, Layer, Matcher, Node, NullGraph, PluginLoader, Source, SourceCache, SourceCacheNotFound, SourceLocationNotFound, TargetNodeNotFound, Vis

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.cache_file(key) ⇒ Object



34
35
36
37
38
# File 'lib/deps_grapher.rb', line 34

def cache_file(key)
  CacheFile.new(file: File.join(config.cache_dir, key.to_s), ttl: config.cache_ttl).tap do |cache_file|
    cache_file.clean! force: config.clean
  end
end

.configObject



22
23
24
# File 'lib/deps_grapher.rb', line 22

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



26
27
28
# File 'lib/deps_grapher.rb', line 26

def configure
  yield config
end

.loggerObject



30
31
32
# File 'lib/deps_grapher.rb', line 30

def logger
  config.logger
end