Sha256: fb6ed953851258c1d0b8fc5faf9c24f740cde260033d7be1bdeb78d7c015e5e9

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'

if ARGV[0] == 'help'

  require 'jbundler/cli'

  JBundler::Cli.start

else

  ARGV << 'install' if ARGV.size == 0

  if ARGV[0] == 'console'
    require 'irb'
    require 'jbundler/lazy'
    include JBundler::Lazy
  end

  begin
    load Gem.bin_path('bundler', 'bundle') 
  rescue Exception
    if ARGV[0] == 'console'
      ARGV.shift
      require 'jbundler'
      if defined? JBUNDLER_CLASSPATH
        warn 'Jarfile dependencies loaded'
      else
        warn 'Could not locate Jarfile'
        
      end
      IRB.start
    end
  end

  if ARGV[0] && ['install', 'update', 'show'].member?(ARGV[0])
    require 'jbundler/cli'

    JBundler::Cli.start
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jbundler-0.3.2 bin/jbundle
jbundler-0.3.1 bin/jbundle
jbundler-0.3.0 bin/jbundle