bin/rdbg

Sun, 09 Jan 2022 22:41:10 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 09 Jan 2022 22:41:10 -0600
changeset 971
7f391ae6b12b
parent 946
20c0492da189
child 990
a4f19f325dea
permissions
-rwxr-xr-x

set to use my asdf-perl fork for now

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'debug', '>= 1.0.0'
end

def run
  if File.exist?(Bundler.unbundled_env.fetch('BUNDLE_GEMFILE', 'Gemfile'))
    Bundler.with_unbundled_env do
      Bundler.reset!
      yield
      exit
    end
  end
  yield
end

run do
  load Gem.bin_path('debug', 'rdbg')
end

mercurial