summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-11-26 14:36:58 -0800
committerAdam Jacob <adam@hjksolutions.com>2008-11-26 14:36:58 -0800
commit6c767fcc5a3fd9ea3a210b83c672a23bf19c5b9d (patch)
tree5ab50e7c4b9c16d449c64bed0a4f712557c48905 /Rakefile
downloadohai-6c767fcc5a3fd9ea3a210b83c672a23bf19c5b9d.tar.gz
First commit of ohai
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 00000000..be8a2a07
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,28 @@
+%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
+require File.dirname(__FILE__) + '/lib/ohai'
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new('ohai', Ohai::VERSION) do |p|
+ p.developer('Adam Jacob', 'adam@opscode.com')
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
+ p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
+ p.rubyforge_name = p.name # TODO this is default value
+ # p.extra_deps = [
+ # ['activesupport','>= 2.0.2'],
+ # ]
+ p.extra_dev_deps = [
+ ['newgem', ">= #{::Newgem::VERSION}"]
+ ]
+
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
+ path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
+ p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
+ p.rsync_args = '-av --delete --ignore-errors'
+end
+
+require 'newgem/tasks' # load /tasks/*.rake
+Dir['tasks/**/*.rake'].each { |t| load t }
+
+# TODO - want other tests/tasks run by default? Add them to the list
+# task :default => [:spec, :features]