Top Level Namespace
Defined Under Namespace
Modules: BleakHouse
Constant Summary collapse
- RUBY_VERSION =
`ruby -v`.split(" ")[1]
Instance Method Summary collapse
Instance Method Details
#execute(command) ⇒ Object
12 13 14 15 16 17 18 |
# File 'ext/build_ruby.rb', line 12 def execute(command) puts command unless system(command) puts "Failed: #{command.inspect}" exit -1 end end |
#which(basename) ⇒ Object
20 21 22 23 24 25 26 |
# File 'ext/build_ruby.rb', line 20 def which(basename) # execute('which') is not compatible across Linux and BSD ENV['PATH'].split(File::PATH_SEPARATOR).detect do |directory| path = File.join(directory, basename.to_s) path if File.exist? path end end |