Sha256: 42f207be9edb414c8e7bf5af0ab6abdf71b2e62bdfbdd200095e742bbc49f234

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

namespace :cohesion do
  desc 'cohesion rake task'
  task :check, :url do | t, args |
    if args[:url].nil?
      puts
      puts "Usage: rake cohesion:check[url] (eg: check_links[\"http://rubyonrails.org/\"])"
    else
      Cohesion::Check.site(args[:url])
    end
    puts
  end

  desc 'test rails app for broken links'
  task :rails => :environment do
    
    Cohesion::Check.rails_text


  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cohesion-1.0.3 lib/tasks/cohesion.rake
cohesion-1.0.2 lib/tasks/cohesion.rake
cohesion-1.0.1 lib/tasks/cohesion.rake
cohesion-1.0.0 lib/tasks/cohesion.rake
cohesion-0.0.7 lib/tasks/cohesion.rake
cohesion-0.0.6 lib/tasks/cohesion.rake
cohesion-0.0.5 lib/tasks/cohesion.rake
cohesion-0.0.4 lib/tasks/cohesion.rake
cohesion-0.0.3 lib/tasks/cohesion.rake