Sha256: 6412b35be54c78bc100b4ef5c5aacf35e8f9fe63c702ffcf4df6dc1140211efb

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reap-9.4.0 lib/reap/tool.rb