The start of something cucumber.

This commit is contained in:
zachgersh 2013-06-03 22:53:30 -07:00
parent 16314ee4a2
commit 7fba828f02
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ def run_jekyll(opts = {})
system command
end
def call_jekyll_new(opts = {})
command = JEKYLL_PATH.clone
command << " new"
command << " --blank" if opts[:blank]
command << " >> /dev/null 2>&1" if opts[:debug].nil?
system command
end
def slug(title)
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
end