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 !
Send full garlic report to doc server
ianwhite (author)
Fri Oct 24 05:41:34 -0700 2008
commit  649d468d4275c1e5ff5b3e14644a1c47803caea4
tree    533d49522d520c257d34778700f002fac4375441
parent  9e0340e700d6b81eea6850b77c62e40a71da331e
...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
...
101
102
103
104
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
...
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
79
80
81
 
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
0
@@ -10,28 +10,6 @@ plugin_name = 'resources_controller'
0
 
0
 task :default => :spec
0
 
0
-task :cruise do
0
-  # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
-  begin
0
-    sh "rake garlic:all > garlic_report.txt"
0
-    
0
-    # send abridged rpeort
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
-
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
-    end
0
-    
0
-  ensure
0
-    puts File.read('garlic_report.txt')
0
-  end
0
-end
0
-
0
 desc "Run the specs for #{plugin_name}"
0
 Spec::Rake::SpecTask.new(:spec) do |t|
0
   t.spec_files = FileList['spec/**/*_spec.rb']
0
@@ -101,4 +79,28 @@ task :get_garlic do
0
 end
0
 
0
 # load up the tasks for testing rspec generators against RC
0
-require File.join(File.dirname(__FILE__), 'spec/generate_rake_task')
0
\ No newline at end of file
0
+require File.join(File.dirname(__FILE__), 'spec/generate_rake_task')
0
+
0
+task :cruise do
0
+  # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
+  begin
0
+    `cp garlic_example.rb garlic.rb`
0
+    `rake get_garlic`
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
+    # 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
+
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
+    end
0
+  end
0
+end
0
\ No newline at end of file

Comments