Sha256: 67557aef2f8d1a14f1aa1a9eed33a777fd6fb1821cc5a69b578dd372ce83c608

Contents?: true

Size: 942 Bytes

Versions: 10

Compression:

Stored size: 942 Bytes

Contents

namespace :test do
  Rake::TestTask.new(:all => "db:test:prepare") do |t|
    t.libs << "test"
    t.pattern = 'test/**/*_test.rb'
    t.verbose = true
  end
  Rake::Task['test:all'].comment = "Run all tests at once"
end

namespace :cms do
  
  desc "Generate guides for the CMS"
  task :guides do
    require 'rubygems'

    gem "actionpack", '>= 2.3'
    require "action_controller"
    require "action_view"

    gem 'RedCloth', '>= 4.1.1'
    require 'redcloth'

    $: << File.join(File.dirname(__FILE__), '../../doc/guides')

    module CmsGuides
      autoload :Generator, "cms_guides/generator"
      autoload :Indexer, "cms_guides/indexer"
      autoload :Helpers, "cms_guides/helpers"
      autoload :TextileExtensions, "cms_guides/textile_extensions"
      autoload :Levenshtein, "cms_guides/levenshtein"
    end

    RedCloth.send(:include, CmsGuides::TextileExtensions)

    CmsGuides::Generator.new.generate

  end    
    
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
bf4-browsercms-3.1.0 lib/tasks/cms.rake
browsercms-3.0.6 lib/tasks/cms.rake
browsercms-3.0.5 lib/tasks/cms.rake
we5-browsercms-3.0.5.1 lib/tasks/cms.rake
we5-browsercms-3.0.5 lib/tasks/cms.rake
browsercms_s3-3.0.5 lib/tasks/cms.rake
browsercms-3.0.4 lib/tasks/cms.rake
browsercms-3.0.3 lib/tasks/cms.rake
browsercms_s3-3.0.4 lib/tasks/cms.rake
browsercms_s3-3.0.3 lib/tasks/cms.rake