Skip to content

Commit

Permalink
dont fail if webgen isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
cpjolicoeur committed Aug 4, 2009
1 parent fe3c797 commit c0c5808
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,16 @@ task :publish_news do
end
end

require 'webgen/webgentask'
Webgen::WebgenTask.new do |t|
t.directory = File.join( File.dirname( __FILE__ ), 'doc/site')
t.clobber_outdir = true
begin
gem 'webgen', '>=0.5.6'
require 'webgen/webgentask'

Webgen::WebgenTask.new do |t|
t.directory = File.join( File.dirname( __FILE__ ), 'doc/site')
t.clobber_outdir = true
end
rescue Gem::LoadError
puts "webgen gem is required to build website output"
end

task :publish_site => :webgen do
Expand Down

0 comments on commit c0c5808

Please sign in to comment.