public
Description: response for lets you decorate your actions respond_to blocks
Homepage: http://blog.ardes.com/response_for
Clone URL: git://github.com/ianwhite/response_for.git
Click here to lend your support to: response_for and make a donation at www.pledgie.com !
Updated cruise task
ianwhite (author)
Sat Nov 01 15:38:38 -0700 2008
commit  3c6185849a9c80779968c0255c7d56431a9f1335
tree    1f53e92e188b6e5562923ee6f1fc640d434f09bf
parent  91ec8f54598abaf2f884af6fe4e38e2b0c9c5801
...
5
6
7
8
9
10
11
...
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
 
 
 
 
 
88
89
90
...
5
6
7
 
8
9
10
...
69
70
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
73
74
75
76
77
78
79
0
@@ -5,7 +5,6 @@ $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) and !$LOAD_PATH.includ
0
 require 'spec/rake/spectask'
0
 require 'spec/rake/verify_rcov'
0
 require 'rake/rdoctask'
0
-require 'garlic/tasks'
0
 
0
 plugin_name = 'response_for'
0
 
0
@@ -70,20 +69,10 @@ end
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 "garlic:all"
0
-    sh "rake garlic:run_targets TARGET=edge > 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
+  sh "garlic all > .garlic/report.txt"
0
+  `scp -i ~/.ssh/ardes .garlic/report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt`
0
+  cd ".garlic/edge/vendor/plugins/#{plugin_name}" do
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
\ No newline at end of file

Comments