Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (26 sloc) 634 Bytes
recipe :ignore
ignore /^\.git\//
ignore /\.swp$/
process do |files|
files.take_and_map do |file|
case file
when %r{^design/requirements.txt$}
source = File.expand_path("../design/requirements.txt", __FILE__)
target = File.expand_path("../design/requirements.html", __FILE__)
result = `saga convert #{source} > #{target}`
unless result.strip == ''
puts result
else
puts
system("saga planning #{source}")
end
files.delete(file)
end
end
end
process do |files|
if gemfile = files.delete('Gemfile')
execute "bundle install"
end
end
recipe :rails