class CapUtil::SharedPath

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.

Public Class Methods

new(cap, path = nil) click to toggle source
# File lib/cap-util/shared_path.rb, line 11
def initialize(cap, path = nil)
  @cap = cap
  @shared_path = File.expand_path(path || cap.shared_path)
end

Public Instance Methods

rm_rf(rel_path) click to toggle source
# File lib/cap-util/shared_path.rb, line 16
def rm_rf(rel_path)
  run "rm -rf #{@shared_path}/#{rel_path}"
end