Sha256: 9d0dd87048a1305cd1bd0701e1b71f2dd448c71d90738aef1a754ea69aaab965

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

#!/usr/bin/env ruby

Petra::CLI.start( ARGV.dup )

BEGIN {
  begin
    has_retried = false
    require 'petra/cli'
  rescue LoadError => e
    raise e if has_retried

    rootdir = File.expand_path "#{ __FILE__ }/../.."
    gitdir  = "#{ rootdir }/.git"

    if Dir.exists?( gitdir )
      ENV[ 'BUNDLE_GEMFILE' ] ||= "#{ rootdir }/Gemfile"
      require 'bundler/setup'
    end

    has_retried = true
    retry
  end
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
petra-0.0.2 bin/petra