Sha256: 8e838b497f43f1c1f5fa0355fed45027c30043f43be24dfc1983820702bc0b9e

Contents?: true

Size: 761 Bytes

Versions: 1

Compression:

Stored size: 761 Bytes

Contents

require 'dm-migrations'
require 'rspec'
require 'rspec/core/rake_task'
require "roodi"
require "roodi_task"
require 'rake'
require "rake/clean"

ENV['DIRECTORIES_TO_CALCULATE'] = 'routes/,helpers/,models/'
require 'code_statistics'

RoodiTask.new() do | t |
t.patterns = %w(**/*.rb)
t.config = "roodi.yml"
end

CLEAN.include('*.tmp','*.old')
CLOBBER.include('*.tmp', 'build/*','#*#')

RSpec::Core::RakeTask.new(:spec)

desc "List all routes for this application"
task :routes do
  puts `grep '^[get|post|put|delete].*do$' routes/*.rb | sed 's/ do$//'`
end

desc "auto migrates the database"
task :migrate do
  require './main'
  DataMapper.auto_migrate!
end

desc "auto upgrades the database"
task :upgrade do
  require './main'
  DataMapper.auto_upgrade! 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clearest-0.0.1a lib/template/Rakefile