Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 28 lines (21 sloc) 0.678 kb
1e7a791 @postmodern Use a Ruby script to invoke the command.
postmodern authored
1 #!/usr/bin/env ruby
a0c5f30 @postmodern Added a short-cut executable.
postmodern authored
2
1e7a791 @postmodern Use a Ruby script to invoke the command.
postmodern authored
3 require 'rubygems'
4
687050d @postmodern Auto-load Bundler if .bundle exists in the root directory.
postmodern authored
5 root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..'))
3ecaac2 @postmodern Updated the Bundler auto-detection boilerplate code.
postmodern authored
6 if File.directory?(File.join(root_dir,'.git'))
7 Dir.chdir(root_dir) do |path|
8 require 'bundler'
687050d @postmodern Auto-load Bundler if .bundle exists in the root directory.
postmodern authored
9
3ecaac2 @postmodern Updated the Bundler auto-detection boilerplate code.
postmodern authored
10 begin
ab7a78a @postmodern Bundle the :default dependencey group.
postmodern authored
11 Bundler.setup(:default)
3ecaac2 @postmodern Updated the Bundler auto-detection boilerplate code.
postmodern authored
12 rescue Bundler::BundlerError => e
13 STDERR.puts e.message
14 STDERR.puts "Run `bundle install` to install missing gems"
15 exit e.status_code
16 end
687050d @postmodern Auto-load Bundler if .bundle exists in the root directory.
postmodern authored
17 end
0e925a2 @postmodern Load the local lib/ directory if present.
postmodern authored
18 end
19
687050d @postmodern Auto-load Bundler if .bundle exists in the root directory.
postmodern authored
20 lib_dir = File.join(root_dir,'lib')
21 $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
22
1e7a791 @postmodern Use a Ruby script to invoke the command.
postmodern authored
23 require 'ronin/ui/console'
9577b5a @postmodern Renamed Ronin::UI::CommandLine to Ronin::UI::CLI.
postmodern authored
24 require 'ronin/ui/cli/commands/console'
1e7a791 @postmodern Use a Ruby script to invoke the command.
postmodern authored
25
b1bd6e8 @postmodern Typo fix.
postmodern authored
26 Ronin::UI::Console.auto_load << 'ronin/scanners'
9577b5a @postmodern Renamed Ronin::UI::CommandLine to Ronin::UI::CLI.
postmodern authored
27 Ronin::UI::CLI::Commands::Console.start
Something went wrong with that request. Please try again.