diff options
author | delano <delano@solutious.com> | 2011-04-30 20:57:47 -0400 |
---|---|---|
committer | delano <delano@solutious.com> | 2011-04-30 20:57:47 -0400 |
commit | 22cc7b8df14f987946b2cf50c153fe7ca27b9580 (patch) | |
tree | ea1d3151f847328c4a43dc691a47a004879f4b2a | |
parent | 07a9b7935d094c9d9b1aca258802f565196c8d17 (diff) | |
download | net-ssh-gateway-22cc7b8df14f987946b2cf50c153fe7ca27b9580.tar.gz |
Added publish:rdoc task to Rakefile
-rw-r--r-- | README.rdoc | 2 | ||||
-rw-r--r-- | Rakefile | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/README.rdoc b/README.rdoc index 755c4c4..243f568 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,6 +1,6 @@ = Net::SSH::Gateway -* http://net-ssh.rubyforge.org/gateway +* https://github.com/net-ssh/net-ssh-gateway == DESCRIPTION: @@ -6,12 +6,13 @@ rescue LoadError abort "You'll need to have `echoe' installed to use Net::SSH::Gateway's Rakefile" end +name = "net-ssh-gateway" version = Net::SSH::Gateway::Version::STRING.dup if ENV['SNAPSHOT'].to_i == 1 version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S") end -Echoe.new('net-ssh-gateway', version) do |p| +Echoe.new(name, version) do |p| p.changelog = "CHANGELOG.rdoc" p.author = "Jamis Buck" @@ -26,3 +27,7 @@ Echoe.new('net-ssh-gateway', version) do |p| p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/ end + +task 'publish:rdoc' => 'doc/index.html' do + sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/net-ssh/gateway/v1/api/" +end |