Guest User

Untitled

a guest
Feb 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. require "rake"
  2.  
  3. __DIR__ = File.dirname(__FILE__)
  4. GEM_HOME = File.dirname(__FILE__) + "/gems"
  5.  
  6. task :update do
  7. `thor merb:tasks:update`
  8. `export GEM_HOME='#{GEM_HOME}' && thor merb:tasks:setup`
  9. `export GEM_HOME='#{GEM_HOME}' && thor merb:edge --install`
  10. end
  11.  
  12. namespace :specs do
  13.  
  14. desc "Run the extlib specs"
  15. task :extlib => :update do
  16. exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/extlib && rake"
  17. end
  18.  
  19. desc "Run the merb-core specs"
  20. task :core => :update do
  21. exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/merb-core && rake"
  22. end
  23.  
  24. desc "Run the merb-more specs"
  25. task :more => :update do
  26. exec "export GEM_HOME='#{GEM_HOME}' && cd #{__DIR__}/src/merb-more && rake"
  27. end
  28.  
  29. end
Add Comment
Please, Sign In to add comment