Sha256: e2151a669536a1f2cf3cf55c498ec9fdf6dd9186d7184a674eeeff63e6858ea9
Contents?: true
Size: 432 Bytes
Versions: 8
Compression:
Stored size: 432 Bytes
Contents
#!/usr/bin/env ruby # Initialize a ScholarMarkdown article project require 'fileutils' templatedir = File.dirname(__FILE__) + '/template' targetdir = ARGV[0] if not targetdir puts 'No target directory name was given' exit(1) end if File.exists?(targetdir) puts 'The target directory already exists' exit(1) end puts 'Initializing project at ' + targetdir Dir.mkdir(targetdir) FileUtils.copy_entry(templatedir, targetdir)
Version data entries
8 entries across 8 versions & 1 rubygems