Skip to content
Browse files

moved html/ to website/ and updated website publishing tasks

git-svn-id: http://svn.addictedtonew.com/public/gems/lorem@63 fe7eae16-9a24-0410-a59d-9e59979e88be
  • Loading branch information...
1 parent ef9161f commit f3cde86f5f151ff92e4802b74a72a1c973713bb6 jnunemaker committed May 10, 2007
Showing with 20 additions and 8 deletions.
  1. +19 −4 Rakefile
  2. 0 {html → website}/css/common.css
  3. +1 −4 {html → website}/index.html
View
23 Rakefile
@@ -53,11 +53,26 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
#p.spec_extras - A hash of extra values to set in the gemspec.
end
-desc 'Publish HTML to RubyForge'
-task :publish_html do
+desc 'Upload website files to rubyforge'
+task :website do
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
host = "#{config["username"]}@rubyforge.org"
- remote_dir = "/var/www/gforge-projects/lorem/"
- local_dir = 'html'
+ remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
+ # remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
+ local_dir = 'website'
sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
+end
+
+desc 'Release the website and new gem version'
+task :deploy => [:check_version, :website, :release]
+
+task :check_version do
+ unless ENV['VERSION']
+ puts 'Must pass a VERSION=x.y.z release version'
+ exit
+ end
+ unless ENV['VERSION'] == VERS
+ puts "Please update your version.rb to match the release version, currently #{VERS}"
+ exit
+ end
end
View
0 html/css/common.css → website/css/common.css
File renamed without changes.
View
5 html/index.html → website/index.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Lorem</title>
+ <title>Lorem by John Nunemaker</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
</head>
<body>
@@ -59,9 +59,6 @@
urchinTracker();
</script>
-<script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
-<script type="text/javascript">re_("2z1p0-wa04180bf1");</script>
-
<!-- 103bees.com 'bee' code v1.11 - please do not make any changes! -->
<script type="text/javascript" src="http://103bees.com/bees/?bee=3672&amp;fid=6056"></script>
<!-- 103bees.com 'bee' code -->

0 comments on commit f3cde86

Please sign in to comment.
Something went wrong with that request. Please try again.