Sha256: 241a8dcfca92028f6f5518f2c0c58c1399e44177e6e532c18c2910c9a185d87d

Contents?: true

Size: 472 Bytes

Versions: 18

Compression:

Stored size: 472 Bytes

Contents

#! /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

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
codesake-dawn-0.85 spec/support/sinatra-safe/script/console
codesake-dawn-0.85 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.80.0 spec/support/sinatra-safe/script/console
codesake-dawn-0.80.0 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.79.99 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.79.99 spec/support/sinatra-safe/script/console
codesake-dawn-0.77 spec/support/sinatra-safe/script/console
codesake-dawn-0.77 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.75 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.75 spec/support/sinatra-safe/script/console
codesake-dawn-0.72 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.72 spec/support/sinatra-safe/script/console
codesake-dawn-0.70 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.70 spec/support/sinatra-safe/script/console
codesake-dawn-0.60 spec/support/sinatra-safe/script/console
codesake-dawn-0.60 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.50 spec/support/sinatra-vulnerable/script/console
codesake-dawn-0.50 spec/support/sinatra-safe/script/console