Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.492 kb
require 'albacore'
desc "Compiles and then rebuilds the database"
task :default => [:msbuild, :db] do
end
desc "Compile the solution"
msbuild do |msb|
msb.solution = "src/MyApp.sln"
msb.path_to_command = File.join(ENV['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
end
desc "Generate the database (requires IronRuby)"
task :db do
$:.unshift('.\src\MyApp\bin')
require 'MyApp'
MyApp::Database.BuildSchema
puts 'Database rebuilt'
end
Jump to Line
Something went wrong with that request. Please try again.