Skip to content

Commit 42f49f4

Browse files
committed
Tweaked deployment of website and docs.
1 parent 8d28319 commit 42f49f4

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Manifest

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Manifest
2121
MIT-LICENSE
2222
Rakefile
2323
README.txt
24-
scrobbler.gemspec
2524
setup.rb
2625
test/fixtures/xml/album/info.xml
2726
test/fixtures/xml/artist/fans.xml

Rakefile

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ require 'rubygems'
33
require 'rake'
44
require 'echoe'
55

6+
WEBSITE_PATH = '[email protected]:/var/www/gforge-projects/scrobbler'
7+
68
Echoe.new('scrobbler', '0.2.0') do |p|
79
p.description = "wrapper for audioscrobbler (last.fm) web services"
810
p.url = "http://scrobbler.rubyforge.org"
911
p.author = "John Nunemaker"
1012
p.email = "[email protected]"
1113
p.extra_deps = [['hpricot', '>=0.4.86'], ['activesupport', '>=1.4.2']]
1214
p.need_tar_gz = false
15+
p.docs_host = WEBSITE_PATH
1316
end
1417

1518
desc 'Upload website files to rubyforge'
1619
task :website do
17-
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
18-
host = "#{config["username"]}@rubyforge.org"
19-
remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
20-
# remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
21-
local_dir = 'website'
22-
sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
20+
sh %{rsync -av website/ #{WEBSITE_PATH}}
21+
Rake::Task['website_docs'].invoke
22+
end
23+
24+
task :website_docs do
25+
Rake::Task['redocs'].invoke
26+
sh %{rsync -av doc/ #{WEBSITE_PATH}/docs}
2327
end
2428

2529
desc 'Preps the gem for a new release'

website/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>Scrobbler</h1>
1313
<p>Get your music on.</p>
1414

1515
<ul id="nav">
16-
<li><a href="scrobbler/">Docs</a></li>
16+
<li><a href="docs/">Docs</a></li>
1717
<li><a href="http://rubyforge.org/projects/scrobbler/">Rubyforge Page</a></li>
1818
</ul>
1919
</div>

0 commit comments

Comments
 (0)