Sha256: 0f3bfa7b21e1b03571ad605065e4be0ec30f72f118c3d8b5246c6ace19967430
Contents?: true
Size: 439 Bytes
Versions: 8
Compression:
Stored size: 439 Bytes
Contents
require 'cap-util' module CapUtil # SharedPath models the path to the set of shared deployed code. named # after cap's `shared_path` method b/c they point at similar locations. class SharedPath include CapUtil def initialize(cap, path=nil) @cap = cap @shared_path = File.expand_path(path || cap.shared_path) end def rm_rf(rel_path) run "rm -rf #{@shared_path}/#{rel_path}" end end end
Version data entries
8 entries across 8 versions & 1 rubygems