Sha256: 0d458f7cfeee749f337b130fcaabcff68d5d4fb4a4ef7e8bd5b073abdc2d012c

Contents?: true

Size: 665 Bytes

Versions: 33

Compression:

Stored size: 665 Bytes

Contents

require 'rake'
require 'rubygems/package_task'
require 'rake/testtask'

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['./test/tc_*.rb']
  t.verbose = false
end

spec = eval(File.read('cpee.gemspec'))
Gem::PackageTask.new(spec) do |pkg|
  pkg.need_zip = true
  pkg.need_tar = true
  `rm pkg/* -rf`
  `ln -sf #{pkg.name}.gem pkg/cpee.gem`
end

task :push => :gem do |r|
  `gem push pkg/cpee.gem`
end  

task :install => :gem do |r|
  `sudo gem install pkg/cpee.gem`
end  

desc "Clean instances"
task :clean do
  Dir.glob("server/instances/*").collect{ |i| i if i =~ /\/\d+$/ }.compact.each do |i|
    rm_rf i if File.exists?(i) 
  end
end  

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
cpee-1.3.209 Rakefile
cpee-1.3.208 Rakefile
cpee-1.3.207 Rakefile
cpee-1.3.206 Rakefile
cpee-1.3.205 Rakefile
cpee-1.3.204 Rakefile
cpee-1.3.203 Rakefile
cpee-1.3.202 Rakefile
cpee-1.3.201 Rakefile
cpee-1.3.200 Rakefile
cpee-1.3.199 Rakefile
cpee-1.3.198 Rakefile
cpee-1.3.197 Rakefile
cpee-1.3.196 Rakefile
cpee-1.3.195 Rakefile
cpee-1.3.194 Rakefile
cpee-1.3.193 Rakefile
cpee-1.3.192 Rakefile
cpee-1.3.191 Rakefile
cpee-1.3.190 Rakefile