class R::TargetSource
A target for existing sources.
Attributes
output[R]
Public Class Methods
new(p)
click to toggle source
# File lib/rub/r/target.rb, line 233 def initialize(p) @src = p @output = Set[p] end
Public Instance Methods
build()
click to toggle source
# File lib/rub/r/target.rb, line 242 def build if not @src.exist? #p self $stderr.puts "Error: source file #{@src} does not exist!" Sysexits.exit :noinput end end
hash_output(f)
click to toggle source
# File lib/rub/r/target.rb, line 238 def hash_output(f) @hashcache ||= Digest::SHA1.file(f).to_s end