Sha256: d36f83174d3f7bf0df7af7e8a7367cb4b23ee54cd372920d940c261623e01805
Contents?: true
Size: 1021 Bytes
Versions: 1
Compression:
Stored size: 1021 Bytes
Contents
require 'find' namespace :build do desc 'Build README.md' task :readme do dir_path = File.dirname(__FILE__) Dir.chdir(dir_path) do ruby_file_name = 'example.rb' template_file_name = 'template.md' readme_file_path = File.join( dir_path, '..', '..', 'README.md', ) readme_file_path = File.absolute_path(readme_file_path) puts readme_file_path Find.find('.') do |path| next unless File.directory?(path) Dir.chdir(path) do if File.exist?(ruby_file_name) && File.exist?(template_file_name) system("ruby #{ruby_file_name} > output.txt") system("markdown_helper include --pristine #{template_file_name} example.md") end end end system("markdown_helper include --pristine #{template_file_name} #{readme_file_path}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_values-0.3.0 | markdown/readme/Rakefile |