tasks/website.rake in gecoder-with-gecode-1.1.0 vs tasks/website.rake in gecoder-with-gecode-1.1.1
- old
+ new
@@ -1,7 +1,5 @@
-require 'rake/contrib/rubyforgepublisher'
-
desc 'Regenerates the contents of the website'
task :website do
mkpath 'doc/output'
Rake::Task[:spec_html].invoke
Rake::Task[:rdoc].invoke
@@ -11,23 +9,9 @@
end
desc 'Removes generated documentation'
task :clobber do
WebsiteRakeHelpers.clobber
-end
-
-task :verify_user do
- raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER']
-end
-
-desc "Uploads the website to RubyForge"
-task :publish_website => [:verify_user, :website] do
- publisher = Rake::SshDirPublisher.new(
- "#{ENV['RUBYFORGE_USER']}@rubyforge.org",
- "/var/www/gforge-projects/gecoder",
- "doc/output"
- )
- publisher.upload
end
module WebsiteRakeHelpers
module_function