class Docs::Generators::BuildDocsGenerator
Public Instance Methods
build_docs()
click to toggle source
# File lib/generators/docs/build_docs_generator.rb, line 7 def build_docs destination = "spec/spec_helper.rb" if File.exist?(destination) uncomment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) system('rspec spec > /dev/null') comment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) else puts "Could not find spec/spec_helper.rb" end end