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
Updated CI to use new garlic gem stylee
ianwhite (author)
Thu Nov 20 00:15:17 -0800 2008
commit  6be080d255a8bc5e7c02d1d62daeafcb7846dce9
tree    468e22b8905fddf495a020e02ac1f9491084aafb
parent  95bcf26c6e898d1d882db1a8f5b8fedcef265df9
...
1
2
3
4
 
...
1
 
 
 
2
0
@@ -1,4 +1,2 @@
0
 doc/*
0
-garlic
0
-garlic.rb
0
-garlic_report.txt
0
+.garlic
...
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
...
89
90
91
92
93
94
95
96
97
98
99
100
 
 
 
 
 
 
 
 
 
101
102
...
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
67
68
69
 
 
 
 
 
 
 
 
 
70
71
72
73
74
75
76
77
78
79
80
0
@@ -10,28 +10,6 @@ plugin_name = 'inherit_views'
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
@@ -89,13 +67,13 @@ namespace :doc do
0
   task :all => ["spec:doc:html", "spec:doc", "spec:rcov", "doc"]
0
 end
0
 
0
-# load up garlic if it's here
0
-if File.directory?(File.join(File.dirname(__FILE__), 'garlic'))
0
-  require File.join(File.dirname(__FILE__), 'garlic/lib/garlic_tasks')
0
-  require File.join(File.dirname(__FILE__), 'garlic')
0
-end
0
-
0
-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
+task :cruise do
0
+  # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
+  sh "garlic clean && mkdir -p .garlic && (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/2.2-stable/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
+  puts "The build is GOOD"
0
 end
0
\ No newline at end of file

Comments