mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #7506 from rolandwalker/remove_destination_path_support
remove support for legacy form `destination_path`
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user