Skip to content

Commit

Permalink
Updated README to point at plugins.ardes.com (where Rdoc is hosted) a…
Browse files Browse the repository at this point in the history
…nd set CI to push rdoc and garlic report
  • Loading branch information
ianwhite committed Sep 24, 2008
1 parent c7ba2df commit 9dfeb76
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions README
2 changes: 2 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
http://plugins.ardes.com > nested_has_many_through

= nested_has_many_through

A fantastic patch/plugin has been floating around for a while:
Expand Down
24 changes: 22 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,31 @@ require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
require 'rake/rdoctask'

plugin_name = File.basename(File.dirname(__FILE__))
plugin_name = 'nested_has_many_through'

task :default => :spec

task :cruise => "garlic:all"
task :cruise do
# run the garlic task, capture the output, if succesful make the docs and copy them to ardes
begin
sh "rake garlic:all > garlic_report.txt"

# send abridged rpeort
report = File.read('garlic_report.txt').sub(/^.*?==========/m, '==========')
report = "garlic report for #{plugin_name}\n#{`git log -n 1 --pretty=oneline --no-color`}\n" + report
File.open('garlic_report.txt', 'w+') {|f| f << report }
sh "scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt"

# build doc and send that
cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
sh "rake doc:all"
sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
end

ensure
puts File.read('garlic_report.txt')
end
end

desc "Run the specs for #{plugin_name}"
Spec::Rake::SpecTask.new(:spec) do |t|
Expand Down

0 comments on commit 9dfeb76

Please sign in to comment.