We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rip-only
1 parent 4439c96 commit ba024ffCopy full SHA for ba024ff
bin/rip-only
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env ruby
2
+# Usage: rip-only [-d]
3
+#
4
+# Drops a rubygems.rb into $RIPENV/lib, causing the current Rip
5
+# environment to be the only environment seen. Essentially turns off
6
+# the Ruby RubyGems API for the current ripenv.
7
8
+# The -d option removes this file, undoing the changes it made.
9
+
10
+require 'rip/script'
11
+exec (ARGV[0] == '-d' ? "rm" : "touch") + " #{Rip.envdir}/lib/rubygems.rb"
0 commit comments