Class: Nanoc::CLI::Commands::ShowData

Inherits:
Nanoc::CLI::CommandRunner
  • Object
show all
Defined in:
lib/nanoc/cli/commands/show-data.rb

Instance Method Summary collapse

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/nanoc/cli/commands/show-data.rb', line 11

def run
  load_site(preprocess: true)

  # Get data
  items   = site.items
  layouts = site.layouts

  # Get dependency tracker
  compiler = site.compiler
  compiler.load_stores
  dependency_store = compiler.dependency_store

  # Print data
  print_item_dependencies(items, dependency_store)
  print_item_rep_paths(items)
  print_item_rep_outdatedness(items, compiler)
  print_layouts(layouts, compiler)
end