Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 11 lines (10 sloc) 0.331 kB
89928a1 @jess add rake task for new quote
authored
1 desc "Create a new quote page"
2 task :new_quote, :name do |t, args|
3 client = args[:name]
4 dir_name = client.gsub(' ', '-')
5 dest = File.join("views/quotes/#{dir_name}")
6 puts "Create quote for #{args[:name]}..."
7 FileUtils.mkdir(dest)
8 FileUtils.cp("template/index.html.haml", dest)
9 puts "Ok, start quoting in #{dest}"
10 end
Something went wrong with that request. Please try again.