Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 642119e59b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (13 sloc) 0.472 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#! /usr/bin/env ruby
# This console script adapted from:rake
# http://barkingiguana.com/blog/2009/01/25/scriptconsole-for-your-application/

libs = []
libs << "irb/completion"
libs << File.dirname(__FILE__) + '/../environment.rb'

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 console interface."
exec command
Something went wrong with that request. Please try again.