Sha256: 39925c0383efb06d9bd5deaa971e93d9d777f50c51a05503806f4cb31eea91ef

Contents?: true

Size: 924 Bytes

Versions: 7

Compression:

Stored size: 924 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/gen/gen'
require 'ronin/ui/cli/commands/gen'

if (ARGV.length > 0 && ARGV.first[0..0] != '-')
  name = ARGV.shift

  begin
    Ronin::Gen.generator(name).start
  rescue Ronin::Gen::UnknownGenerator
    STDERR.puts "ronin-gen: unknown generator #{name}"
    STDERR.puts "ronin-gen: run 'ronin-gen' for a list of generators"
    exit -1
  end
else
  Ronin::UI::CLI::Commands::Gen.start
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ronin-gen-1.0.1.rc1 bin/ronin-gen
ronin-gen-1.0.0 bin/ronin-gen
ronin-gen-1.0.0.rc2 bin/ronin-gen
ronin-gen-1.0.0.rc1 bin/ronin-gen
ronin-gen-1.0.0.pre3 bin/ronin-gen
ronin-gen-1.0.0.pre2 bin/ronin-gen
ronin-gen-1.0.0.pre1 bin/ronin-gen