Sha256: ed0cdd504a33da1ae0f2a4210cf7c4728f97142de8643f3874d2336892cf6cfe
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
require 'rails/generators' module SmashingDocumentation 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
3 entries across 3 versions & 1 rubygems