The start of something cucumber.
This commit is contained in:
parent
16314ee4a2
commit
7fba828f02
|
@ -14,6 +14,14 @@ def run_jekyll(opts = {})
|
||||||
system command
|
system command
|
||||||
end
|
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)
|
def slug(title)
|
||||||
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
|
title.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue