File: pruby

package info (click to toggle)
ruby-proxifier 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 112 kB
  • sloc: ruby: 341; makefile: 3
file content (8 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

executable = Gem.ruby
full_gem_path = Gem.loaded_specs["proxifier"].full_gem_path
load_paths = Gem.loaded_specs["proxifier"].require_paths.map { |p| "-I#{File.join(full_gem_path, p)}" }
# TODO: support argument switches

exec(executable, *load_paths, "-rproxifier/env", *ARGV)