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

Version Path
cap-util-1.4.0 lib/cap-util/shared_path.rb
cap-util-1.3.0 lib/cap-util/shared_path.rb
cap-util-1.2.0 lib/cap-util/shared_path.rb
cap-util-1.1.0 lib/cap-util/shared_path.rb
cap-util-1.0.1 lib/cap-util/shared_path.rb
cap-util-1.0.0 lib/cap-util/shared_path.rb
cap-util-1.0.0.rc1 lib/cap-util/shared_path.rb
cap-util-0.4.0 lib/cap-util/shared_path.rb