Sha256: 9e46da7a9d8ea0da71ac343555edbb1eced010d4f1aeb24fa78d168602335c85

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 Bytes

Contents

module Reap

  class Project

    # 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

6 entries across 6 versions & 1 rubygems

Version Path
reap-9.3.0 lib/reap/project/site.rb
reap-9.3.1 lib/reap/project/site.rb
reap-9.3.3 lib/reap/project/site.rb
reap-9.3.4 lib/reap/project/site.rb
reap-9.4.0 lib/reap/project/site.rb
reap-9.3.5 lib/reap/project/site.rb