Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (11 sloc) 420 Bytes
#! /usr/bin/env ruby
# This console script adapted from:rake
# http://barkingiguana.com/blog/2009/01/25/scriptconsole-for-your-application/
libs = %w{irb/completion app}
command_line = []
command_line << "irb"
command_line << libs.inject("") { |acc, lib| acc + %( -r "#{lib}") }
command_line << "--simple-prompt"
command = command_line.join(" ")
puts "Welcome to the sinatra-mvc console interface."
exec command
Jump to Line
Something went wrong with that request. Please try again.