Sha256: 18022bbaaa824676baaa9433153b0196720d3f8b01072c574d8a0ad7d6781c24
Contents?: true
Size: 441 Bytes
Versions: 3
Compression:
Stored size: 441 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cap-util-1.5.2 | lib/cap-util/shared_path.rb |
cap-util-1.5.1 | lib/cap-util/shared_path.rb |
cap-util-1.5.0 | lib/cap-util/shared_path.rb |