1234567891011121314151617181920 |
- #!/usr/bin/env ruby
- # frozen_string_literal: true
- require_relative "./../.env"
- case ENV["DATA_STRUCTURES_RB_ENV"]
- when "development", "test"
- require "pathname"
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
- Pathname.new(__FILE__).realpath)
- require "rubygems"
- require "bundler/setup"
- load Gem.bin_path("pry", "pry")
- else
- $stderr.puts "ERROR: repl can't be run in this environment"
- exit 1
- end
|