Sha256: 49007c357e0c3c0c8853f2ce233746559b1c4dfffbb554337a4dc44434503e44
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
require 'rails/generators' module Docs module Generators class BuildDocsGenerator < Rails::Generators::Base source_root File.expand_path("../../../templates/", __FILE__) def build_docs destination = "spec/spec_helper.rb" if File.exist?(destination) uncomment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) `rspec spec` comment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) else puts "Could not find spec/spec_helper.rb" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smashing_docs-1.3.2 | lib/generators/docs/build_docs_generator.rb |
smashing_docs-1.3.1 | lib/generators/docs/build_docs_generator.rb |