require 'reap/utilities' module Reap # = Tool # # The Tool class provides a common base classs for # project tools. class Tool include Utilities attr :project, :options def self.from_project(project, options=nil) new(project, options) end def initialize(project, options=nil) @project = project @options = (options || {}).rekey end def metadata project.metadata end def force? ; project.force? ; end def trace? ; project.trace? ; end def debug? ; project.debug? ; end def dryrun? ; project.dryrun? ; end def verbose? ; project.verbose? ; end end end