public
Description: rails plugin that enables inheritance of views along a controller class heirachy
Homepage: http://ianwhite.github.com/inherit_views
Clone URL: git://github.com/ianwhite/inherit_views.git
Modified cruise task to build and push docs to plugins.ardes.com on success
ianwhite (author)
Mon Sep 22 21:52:10 -0700 2008
commit  8677f7cc98f84f3989738194d19f301d6b3c8640
tree    7c5c0ec3af0c9038b576211669d29d7d759b4229
parent  679c697e5fbf1c7596c9278625b8b155c5d25904
...
1
2
3
 
...
1
2
3
4
0
@@ -1,3 +1,4 @@
0
 doc/*
0
 garlic
0
 garlic.rb
0
+garlic_report.txt
...
10
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
...
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
0
@@ -10,7 +10,27 @@ plugin_name = File.basename(File.dirname(__FILE__))
0
 
0
 task :default => :spec
0
 
0
-task :cruise => "garlic:all"
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/inherit_views"
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|

Comments