Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.

Name: Rakefile 
1:
require 'rake'
2:
require 'rubygems/package_task'
3:
require 'rake/testtask'
4:
 
5:
Rake::TestTask.new do |t|
6:
  t.libs << "test"
7:
  t.test_files = FileList['./test/tc_*.rb']
8:
  t.verbose = false
9:
end
10:
 
11:
spec = eval(File.read('cpee.gemspec'))
12:
Gem::PackageTask.new(spec) do |pkg|
13:
  pkg.need_zip = true
14:
  pkg.need_tar = true
15:
  `rm pkg/* -rf`
16:
  `ln -sf #{pkg.name}.gem pkg/cpee.gem`
17:
end
18:
 
19:
task :push => :gem do |r|
20:
  `gem push pkg/cpee.gem`
21:
end  
22:
 
23:
task :install => :gem do |r|
24:
  `sudo gem install pkg/cpee.gem`
25:
end  
26:
 
27:
desc "Clean instances"
28:
task :clean do
29:
  Dir.glob("server/instances/*").collect{ |i| i if i =~ /\/\d+$/ }.compact.each do |i|
30:
    rm_rf i if File.exists?(i)
31:
  end
32:
end