tasks/server.runfile
summary "Run server with spec docroot or the sample docroot"
usage "[--sample]"
option "--sample, -s", "Use the 'sample' folder instead of the fixture"
action do |args|
folder = args['--sample'] ? 'sample' : 'spec/fixtures/docroot'
Dir.chdir folder do
exec "bundle exec madness server"
end
end