class DakeScheme::Local

Constants

PATTERN

Public Class Methods

new(scheme_part, path_part, step) click to toggle source
# File lib/dake/scheme.rb, line 36
def initialize(scheme_part, path_part, step)
  if path_part.start_with? '/'
   @path = path_part
   @src = Pathname.new(path_part).relative_path_from(Pathname.new(step.context['BASE']))
  else
    @path = File.expand_path(path_part, step.context['BASE'])
    @src = path_part
  end
  @step = step
end

Public Instance Methods

exist?() click to toggle source
# File lib/dake/scheme.rb, line 51
def exist?
  File.exist?(@path)
end
mtime() click to toggle source
# File lib/dake/scheme.rb, line 47
def mtime
  File.mtime(@path)
end