Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

bin/envargs #122

Open
botanicus opened this issue Nov 27, 2009 · 0 comments
Open

bin/envargs #122

botanicus opened this issue Nov 27, 2009 · 0 comments

Comments

@botanicus
Copy link
Owner

def envargs_shebang(executable = ruby_basename, args)
system_envargs = %x(which envargs).chomp
local_envargs = File.join(Rango.root, "bin", "envargs")
envargs = [system_envargs, local_envargs].detect { |path| File.executable?(path) }
raise "No envargs detected!" if envargs.nil?
"#!#{envargs} #{executable} #{args.join(" ")}".chomp(" ")
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant