Sha256: 53d413d9cabb9bf98b9ffd08df8ae20fac4a4b587d8ff80cb677193f5d3ad47c
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
require 'reap/task' # # Install Task # class Reap::Install < Reap::Task def task_desc "Locally install package using setup.rb or install.rb." end attr_accessor :options, :quiet #, :sudo def init @quiet ||= !$VERBOSE @options ||= [] #@sudo ||= true end def run exe = %w{ setup.rb install.rb }.find{ |f| File.exists?(f) } raise "setup.rb or install.rb not found" if exe == nil puts "Reap is shelling out work to #{exe}..." options << '-q' if @quiet c = "sudo ruby #{exe} #{options.join(' ')}" sh c end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reap-4.0 | lib/reap/task/install.rb |
reap-4.0.0 | lib/reap/task/install.rb |
reap-5.10.10 | lib/reap/task/install.rb |