public
Rubygem
Description: Rails RESTful controller abstraction plugin.
Homepage: http://jamesgolick.com/resource_controller
Clone URL: git://github.com/giraffesoft/resource_controller.git
Click here to lend your support to: resource_controller and make a donation at www.pledgie.com !
add task for uploading RDoc to keep it fresh


git-svn-id: http://svn.jamesgolick.com/resource_controller/trunk@156 
a0c33c4f-3f3c-0410-8ba4-d3650ac1a399
james (author)
Fri Feb 15 13:47:19 -0800 2008
commit  ce9e6c84231a42dd6cf335da568359c83e372faf
tree    01973aa796bc2094790bdfd57d757df657d03e49
parent  be5a908b4b477e0c5482353dc758b6aa1f381bf7
...
22
23
24
25
 
 
 
26
27
28
...
40
41
42
 
 
 
 
 
 
 
 
 
 
 
...
22
23
24
 
25
26
27
28
29
30
...
42
43
44
45
46
47
48
49
50
51
52
53
54
55
0
@@ -22,7 +22,9 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
0
 end
0
 
0
 desc "Do all necessary tagging for a release"
0
-task :release do
0
+task :release => [:tag_release, :upload_docs]
0
+
0
+task :tag_release do
0
   unless ENV.include?('human') && ENV.include?('tag')
0
     raise "Usage: rake release human=0.something tag=rel_2.0"
0
   end
0
@@ -40,3 +42,14 @@ task :release do
0
   puts "tag stable release"
0
   `svn copy #{repo_root}/tags/#{tag_name} #{repo_root}/tags/stable -m"tag stable release"`
0
 end
0
+
0
+task :upload_docs => :rdoc do
0
+ puts 'Deleting previous rdoc'
0
+ `ssh jamesgolick.com 'rm -Rf /home/apps/jamesgolick.com/public/resource_controller/rdoc'`
0
+
0
+ puts "Uploading current rdoc"
0
+ `scp -r rdoc jamesgolick.com:/home/apps/jamesgolick.com/public/resource_controller`
0
+
0
+ puts "Deleting rdoc"
0
+ `rm -Rf rdoc`
0
+end

Comments

    No one has commented yet.