public
Description: resources_controller rails plugin: rc makes RESTful controllers fun
Homepage: http://plugins.ardes.com/doc/resources_controller
Clone URL: git://github.com/ianwhite/resources_controller.git
Click here to lend your support to: resources_controller and make a donation at www.pledgie.com !
Tweaked doc dask
Ian White (author)
Fri Oct 24 18:56:08 -0700 2008
commit  8457e5703f7c147a2444da62931841a28e456b31
tree    476bd68eac875b10cda6f064633d71c117702da1
parent  649d468d4275c1e5ff5b3e14644a1c47803caea4
...
89
90
91
92
 
 
 
 
93
94
95
96
97
98
 
99
100
101
102
103
 
 
104
105
106
107
 
...
89
90
91
 
92
93
94
95
96
97
98
99
100
 
101
102
103
104
 
 
105
106
107
108
 
109
110
0
@@ -89,18 +89,21 @@ task :cruise do
0
     `cd garlic; git pull`
0
     `rake garlic:clean`
0
     sh "rake garlic:all"
0
-    sh "rake garlic:run_targets > garlic_report.txt"
0
+
0
+    # the following can fail
0
+    `rake garlic:clean`
0
+    `rake garlic:run_targets > garlic_report.txt`
0
     
0
     # send abridged report
0
     report = File.read('garlic_report.txt').sub(/^.*?==========/m, '==========')
0
     report = "garlic report for #{plugin_name}\n#{`git log -n 1 --pretty=oneline --no-color`}\n" + report
0
     File.open('garlic_report.txt', 'w+') {|f| f << report }
0
-    sh "scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt"
0
+    `scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt`
0
 
0
     # build doc and send that
0
     cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
0
-      sh "rake doc:all"
0
-      sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
0
+      `rake doc:all`
0
+      `scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}`
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments