Sha256: 2bffa4adcfc03fd6a36458e3acbd1430ea73b11e821271bd3b273e82287c550e

Contents?: true

Size: 559 Bytes

Versions: 7

Compression:

Stored size: 559 Bytes

Contents

#!/usr/bin/env ruby

require 'markdown_helper'

def usage
  dir_path = File.dirname(File.absolute_path(__FILE__))
  file_path = File.join(
                      dir_path,
                      'usage',
                      'include.txt'
  )
  puts File.read(file_path)
  exit
end

template_file_path, markdown_file_path = ARGV

usage unless ARGV.size == 2
usage unless File.readable?(template_file_path)
usage unless File.writable?(File.dirname(markdown_file_path))

MarkdownHelper.new.include(template_file_path, markdown_file_path)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
markdown_helper-0.2.2 bin/include
markdown_helper-0.2.1 bin/include
markdown_helper-0.2.0 bin/include
markdown_helper-0.1.9 bin/include
markdown_helper-0.1.8 bin/include
markdown_helper-0.1.7 bin/include
markdown_helper-0.1.6 bin/include