This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Gwyn Morfey (author)
Wed Apr 16 03:58:11 -0700 2008
commit 13beef0e31151c7121baa3f8df595e174ed7e80b
tree f5722b8af97db1ab24cc40bdd2295e5c7e611ae6
parent f35d84c0b5b971ded6c0b698884d2d71707ee091
tree f5722b8af97db1ab24cc40bdd2295e5c7e611ae6
parent f35d84c0b5b971ded6c0b698884d2d71707ee091
merb-plugins / Rakefile
| bfd596c1 » | drnic | 2008-02-28 | 1 | require "rake" | |
| 2 | require 'fileutils' | ||||
| 3 | |||||
| 4 | windows = (PLATFORM =~ /win32|cygwin/) rescue nil | ||||
| 5 | |||||
| 6 | SUDO = windows ? "" : "sudo" | ||||
| 7 | |||||
| adb8dc7f » | ivey | 2008-03-04 | 8 | gems = %w[merb_activerecord merb_datamapper merb_helpers merb_sequel merb_param_protection merb_test_unit merb_stories] | |
| bfd596c1 » | drnic | 2008-02-28 | 9 | ||
| 507ff743 » | drnic | 2008-02-28 | 10 | orm_gems = %w[merb_activerecord merb_datamapper merb_sequel] | |
| 11 | |||||
| bfd596c1 » | drnic | 2008-02-28 | 12 | desc "Install it all" | |
| 507ff743 » | drnic | 2008-02-28 | 13 | task :install => "install:gems" | |
| 14 | |||||
| 15 | namespace :install do | ||||
| 16 | desc "Install the merb-plugins sub-gems" | ||||
| 17 | task :gems do | ||||
| 18 | gems.each do |dir| | ||||
| dba4f95d » | Nicos Gollan | 2008-04-05 | 19 | Dir.chdir(dir){ sh "rake install" } | |
| 507ff743 » | drnic | 2008-02-28 | 20 | end | |
| 21 | end | ||||
| bfd596c1 » | drnic | 2008-02-28 | 22 | ||
| 6e646728 » | ezmobius | 2008-03-06 | 23 | desc "Install the ORM merb-plugins sub-gems" | |
| 507ff743 » | drnic | 2008-02-28 | 24 | task :orm do | |
| 25 | orm_gems.each do |dir| | ||||
| dba4f95d » | Nicos Gollan | 2008-04-05 | 26 | Dir.chdir(dir){ sh "rake install" } | |
| 507ff743 » | drnic | 2008-02-28 | 27 | end | |
| bfd596c1 » | drnic | 2008-02-28 | 28 | end | |
| 29 | end | ||||
| b4193b78 » | ivey | 2008-02-29 | 30 | ||
| 31 | |||||
| 32 | desc "Bundle up all the merb-plugins gems" | ||||
| 33 | task :bundle do | ||||
| 34 | mkdir_p "bundle" | ||||
| 35 | gems.each do |gem| | ||||
| 36 | File.open("#{gem}/Rakefile") do |rakefile| | ||||
| 37 | rakefile.read.detect {|l| l =~ /^VERSION\s*=\s*"(.*)"$/ } | ||||
| 18aaca3b » | ezmobius | 2008-03-24 | 38 | Dir.chdir(gem){ sh "rake package" } | |
| b4193b78 » | ivey | 2008-02-29 | 39 | sh %{cp #{gem}/pkg/#{gem}-#{$1}.gem bundle/} | |
| 40 | end | ||||
| 41 | end | ||||
| adb8dc7f » | ivey | 2008-03-04 | 42 | end | |







