# -*- ruby -*- begin require 'hoe' rescue LoadError abort "ERROR: This Rakefile is only useful with hoe installed. If you're trying to install the rubyforge library, please install it via rubygems." end Object.send :remove_const, :RubyForge if defined? RubyForge require './lib/rubyforge.rb' Hoe.new("rubyforge", RubyForge::VERSION) do |rubyforge| rubyforge.rubyforge_name = "codeforpeople" rubyforge.need_tar = false rubyforge.developer('Ryan Davis', 'ryand-ruby@zenspider.com') rubyforge.developer('Eric Hodel', 'drbrain@segment7.net') rubyforge.developer('Ara T Howard', 'ara.t.howard@gmail.com') end task :backup do Dir.chdir File.expand_path("~/.rubyforge") do cp "user-config.yml", "user-config.yml.bak" cp "auto-config.yml", "auto-config.yml.bak" end end task :restore do Dir.chdir File.expand_path("~/.rubyforge") do cp "user-config.yml.bak", "user-config.yml" cp "auto-config.yml.bak", "auto-config.yml" end end # vim:syntax=ruby