public
Description: Skeleton Rails app with rake tasks for getting RSpec quickly
Clone URL: git://github.com/pat-maddox/starter-app.git
make vendor/plugins if it doesn't exist
pat-maddox (author)
Thu Jun 19 23:53:53 -0700 2008
commit  9fa4f62d3e390192cf402c61b30855f32027e6d3
tree    330f79526a4c114432ddb4701f2bcc59f8f1b3d4
parent  dc019c120f3263daec7178800240ace96c955006
...
 
 
1
2
3
4
 
 
5
6
7
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1,7 +1,11 @@
0
+require "fileutils"
0
+
0
 desc "Check out the rspec and rspec-rails plugins to vendor/plugins"
0
 task :fetch_rspec do
0
   plugins_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vendor', 'plugins'))
0
 
0
+ FileUtils.mkdir_p(plugins_dir) unless File.directory?(plugins_dir)
0
+
0
   new_rspec = false
0
   %w(rspec rspec-rails).each do |plugin|
0
     if File.exist?(File.join(plugins_dir, plugin))

Comments

    No one has commented yet.