forked from 2maz/base-admin_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (31 loc) · 1.07 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rake'
begin
require 'hoe'
Hoe::plugin :yard
Hoe::RUBY_FLAGS.gsub! /-w/, ''
hoe_spec = Hoe.spec 'admin_scripts' do
developer 'Sylvain Joyeux', 'sylvain.joyeux@m4x.org'
developer 'Thomas Roehr', 'thomas.roehr@dfki.de'
self.version = 0.1
self.description = 'General scripts for administration of a Rock installation'
self.urls = ["https://github.com/rock-core/base-admin_scripts"]
self.readme_file = FileList['README*'].first
self.history_file = "History.txt"
licenses << 'GPLv2+'
extra_deps <<
['hoe'] <<
['hoe-yard'] <<
['rake']
end
Rake.clear_tasks(/^default$/)
task :default => []
task :docs => :yard
task :redocs => :yard
rescue LoadError
STDERR.puts "cannot load the Hoe gem. Distribution is disabled"
rescue Exception => e
if e.message !~ /\.rubyforge/
STDERR.puts "WARN: cannot load the Hoe gem, or Hoe fails. Publishing tasks are disabled"
STDERR.puts "WARN: error message is: #{e.message}"
end
end