Merge pull request #7506 from rolandwalker/remove_destination_path_support

remove support for legacy form `destination_path`
This commit is contained in:
Roland Walker
2014-11-21 11:29:18 -05:00
5 changed files with 1 additions and 20 deletions
+1
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)
-5
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
-5
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.
-5
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
-5
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