0
@@ -10,28 +10,6 @@ plugin_name = 'resources_controller'
0
- # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
- sh "rake garlic:all > garlic_report.txt"
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
- # build doc and send that
0
- cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
0
- sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
0
- puts File.read('garlic_report.txt')
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
@@ -101,4 +79,28 @@ task :get_garlic do
0
# load up the tasks for testing rspec generators against RC
0
-require File.join(File.dirname(__FILE__), 'spec/generate_rake_task')
0
\ No newline at end of file
0
+require File.join(File.dirname(__FILE__), 'spec/generate_rake_task')
0
+ # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
0
+ `cp garlic_example.rb garlic.rb`
0
+ sh "rake garlic:run_targets > garlic_report.txt"
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
+ # build doc and send that
0
+ cd "garlic/work/edge/vendor/plugins/#{plugin_name}" do
0
+ sh "scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}"
0
\ No newline at end of file