Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rake"
- __DIR__ = File.dirname(__FILE__)
- GEM_HOME = File.dirname(__FILE__) + "/gems"
- task :update do
- `thor merb:tasks:update`
- `export GEM_HOME='#{GEM_HOME}' && thor merb:tasks:setup`
- `export GEM_HOME='#{GEM_HOME}' && thor merb:edge --install`
- end
- namespace :specs do
- desc "Run the extlib specs"
- task :extlib => :update do
- exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/extlib && rake"
- end
- desc "Run the merb-core specs"
- task :core => :update do
- exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/merb-core && rake"
- end
- desc "Run the merb-more specs"
- task :more => :update do
- exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/merb-more && rake"
- end
- end
Add Comment
Please, Sign In to add comment