Sha256: 011e54bcf5f1542440ed54adf1844676e915a05f252ead7de13ef3f89675b67c

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'

root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root_dir,'.git'))
  Dir.chdir(root_dir) do |path|
    require 'bundler'

    begin
      Bundler.setup(:default)
    rescue Bundler::BundlerError => e
      STDERR.puts e.message
      STDERR.puts "Run `bundle install` to install missing gems"
      exit e.status_code
    end
  end
end

lib_dir = File.join(root_dir,'lib')
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)

require 'ronin/ui/console'
require 'ronin/ui/command_line/commands/console'

Ronin::UI::Console.auto_load << 'ronin/sql'
Ronin::UI::CLI::Commands::Console.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-sql-1.1.0 bin/ronin-sql
ronin-sql-1.0.0 bin/ronin-sql