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 !
Tweaked CI task in Rakefile
ianwhite (author)
Sun Oct 19 15:22:56 -0700 2008
commit  4d9e74e45897d221d72e547c903c20d22cdbca19
tree    d97e1b4163d0e6a0116f4b39dcce885c79ee23a2
parent  524d76bb9c886635b6cfcf1e6d820ef373c3dcd4
...
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
...
99
100
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
...
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
77
78
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
0
@@ -10,28 +10,6 @@ plugin_name = 'response_for'
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
@@ -99,3 +77,27 @@ desc "clone the garlic repo (for running ci tasks)"
0
 task :get_garlic do
0
   sh "git clone git://github.com/ianwhite/garlic.git garlic"
0
 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
+    `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 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
+  end
0
+end
0
\ No newline at end of file

Comments