Sha256: 14bb7d7203528dbfbbb557ecf153480f31947a28768ba8bf955f55673688c4c3
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'flannel' module Flannel class QuiltIt def self.run! *args args.each do|a| if File.exists?(a) contents = IO.read(areturn) doc = Flannel::quilt contents file_n_path = "#{strip_extension(a)}.html" File.open(file_n_path, 'w') {|f| f.write(doc) } else puts "Can't find #{a}." end end return 1 end def self.strip_extension name return name unless name[-8..-1] == '.flannel' name[0..-9] end end end exit Flannel::QuiltIt.run!(*ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flannel-0.1.3 | bin/quilt-it~ |