Method: RSpecDocumentation::Documentation#generate

Defined in:
lib/rspec_documentation/documentation.rb

#generateObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rspec_documentation/documentation.rb', line 8

def generate
  initialize_if_empty
  start
  require_spec_helper
  ensure_context
  page_collection.generate
  flush unless failed?
  summary.flush
rescue RSpecDocumentation::MissingFileError => e
  warn(paintbrush { red e.message })
  @failed = true
end