Sha256: 03748ef099da3c7c6c90bf3bf82124e2498a2967209be56cf0ed46bcbbf640c4

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

module Reap

  class Manager

    # Install via project's install/setup script.
    #
    # TODO: Remove special reap options from command line.

    def site_install
      script = glob("setup.rb,install.rb,task/setup,task/install").first
      if script
        sh "#{script} #{ARGV.join(' ')}"
      else
        abort "Project needs an install/setup script."
      end
    end

    # TODO: Create uninstall task.

    def site_uninstall
      abort "Not yet implemented."
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reap-9.2.0 lib/reap/manager/site.rb
reap-9.2.1 lib/reap/manager/site.rb