Sha256: 1d72d34b29fb80f793992a132b18574f617fdb9321b38988c114f9cc374ae6be

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

#!/usr/bin/env ruby

require 'rack'
require 'pry'
require 'rash/shell'

ENV['RACK_ENV'] ||= 'development'
Rack::Builder.parse_file('config.ru')

if ARGV.empty?
  Pry.start
else
  Pry.prompt = Pry::NO_PROMPT
  Pry.hooks.delete_hook(:before_session, :welcome)

  puts
  cmd = ARGV.join(' ').concat("\n exit")
  Pry::CLI.parse_options(['--exec', cmd])
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rash-shell-0.1.0 bin/rash