#!/usr/bin/env ruby use_case_dir_path = File.absolute_path(File.dirname(__FILE__)) reusable_text_file_name = 'reusable_text.md' reusable_text_file_path = File.join( use_case_dir_path, reusable_text_file_name, ) includer_file_name = 'includer.md' includer_file_path = File.join( use_case_dir_path, includer_file_name, ) included_file_name = 'included.md' use_case_file_name = 'reuse_text.md' use_case_file_path = File.join( use_case_dir_path, use_case_file_name, ) template_file_name = 'template.md' template_file_path = File.join( use_case_dir_path, template_file_name, ) include_command = "markdown_helper include --pristine #{includer_file_name} #{included_file_name}" File.write( reusable_text_file_path, <