D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby23
/
lib64
/
ruby
/
gems
/
2.3.0
/
gems
/
rake-10.4.2
/
rakelib
/
Filename :
publish.rake
back
Copy
# Optional publish task for Rake begin require 'rake/contrib/sshpublisher' require 'rake/contrib/rubyforgepublisher' publisher = Rake::SshDirPublisher.new( 'linode', 'htdocs/software/rake', 'html') desc "Publish the Documentation to RubyForge." task :publish => [:rdoc] do publisher.upload end rescue LoadError => ex puts "#{ex.message} (#{ex.class})" puts "No Publisher Task Available" end