module R::I::Runner

Functions for running build scripts.

Public Class Methods

do_file(f) click to toggle source

Execute a file.

Runs a script if it hasn’t been run already.

@param f [Pathname] The file to run. @return [void]

# File lib/rub/r/i/runner.rb, line 35
def self.do_file(f)
        if @@loaded[f]
                return
        end

        if not f.exist?
                $stderr.puts "\"#{f}\" is not readable!"
                Sysexits.exit :noinput
        end
        
        @@loaded[f] = true
        
        Dir.chdir f.dirname do
                load f.to_s
        end
end