remove support for legacy form `destination_path`

replaced by `staged_path`
This commit is contained in:
Roland Walker 2014-11-21 09:47:13 -05:00
parent 4d3d254a30
commit 850e8cf3c0
5 changed files with 1 additions and 20 deletions

View File

@ -74,6 +74,7 @@ This notice will be removed for the final form.**
| `uninstall :files` | `uninstall :delete`
| `version 'latest'` | `version :latest`
| `manual_installer(path)` (within `caveats`) | `installer :manual`
| `destination_path` | `staged_path`
## All Supported Stanzas (1.0)

View File

@ -155,11 +155,6 @@ class Cask
caskroom_path.join(cask_version.to_s)
end
# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end
def metadata_master_container_path
caskroom_path.join(self.class.metadata_subdir)
end

View File

@ -36,11 +36,6 @@ class Cask::CaveatsDSL
caskroom_path.join(@cask.version.to_s)
end
# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end
# DSL. Each method should handle output, following the convention of
# at least one trailing blank line so that the user can distinguish
# separate caveats.

View File

@ -23,9 +23,4 @@ class Cask::DSL::Base
def staged_path
caskroom_path.join(@cask.version.to_s)
end
# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end
end

View File

@ -3,11 +3,6 @@ class Cask::WithoutSource < Cask
caskroom_path.children.first
end
# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end
def to_s
"#{title} (!)"
end