diff options
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -27,6 +27,11 @@ $spec_path = 'leap_cli.gemspec' $base_dir = File.dirname(__FILE__) $spec = eval(File.read(File.join($base_dir, $spec_path))) $gem_path = File.join($base_dir, 'pkg', "#{$spec.name}-#{$spec.version}.gem") +require File.join([$base_dir, 'lib','leap_cli','version.rb']) +LeapCli::REQUIRE_PATHS.each do |path| + path = File.expand_path(path, $base_dir) + $LOAD_PATH.unshift path unless $LOAD_PATH.include?(path) +end def built_gem_path Dir[File.join($base_dir, "#{$spec.name}-*.gem")].sort_by{|f| File.mtime(f)}.last @@ -122,3 +127,14 @@ end # rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") # rd.title = 'Your application title' # end + +desc "Dumps all command line options to doc/leap.md" +task :doc do + Dir.chdir($base_dir + "/doc") do + if system('../bin/leap _doc --format=LeapCli::MarkdownDocumentListener') + puts "updated doc/leap.md" + else + puts "error" + end + end +end
\ No newline at end of file |
