Sha256: 4e9b84fd3596df1ce511b52c75202ece3a5fe81456440b763f8bf1c72162a1a1
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
require 'rubygems' require 'bundler' require 'rake' require 'rake/testtask' require 'rdoc/task' Bundler::GemHelper.install_tasks desc "Create documentation" Rake::RDocTask.new("doc") { |rdoc| rdoc.title = "Ganapati - Hadoop HDFS thrift interface for Ruby" rdoc.rdoc_dir = 'docs' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') } desc "Re-generate thrift files" task "regen_thrift" do if ENV['HADOOP_HOME'].nil? puts "You must set your HADOOP_HOME variable before calling this task." return end system "thrift --gen rb -o /tmp #{ENV['HADOOP_HOME']}src/contrib/thriftfs/if/hadoopfs.thrift" system "mv /tmp/gen-rb/* lib/thrift" end task :default => [ :gem, :doc ]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ganapati-0.0.7 | Rakefile |
ganapati-0.0.6 | Rakefile |