Sfoglia il codice sorgente

Add Rails-style console script

tags/last-sinatra-version
Adrian Short 6 anni fa
parent
commit
ed9e588600
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. +11
    -0
      scripts/console

+ 11
- 0
scripts/console Vedi File

@@ -0,0 +1,11 @@
#!/usr/bin/env ruby

# https://mutelight.org/bin-console

require 'irb'
require 'irb/completion' # autocomplete
require 'bundler/setup'
Bundler.require
require_relative '../models'
set :run, false # Don't run Sinatra just because we've required it
IRB.start

Caricamento…
Annulla
Salva