Commit 1d276368 authored by Fabio Pelosin's avatar Fabio Pelosin

[Hooks] Restore compatiblity with Podfile::TargetDefinition#copy_resources_script_name

parent e7d736e4
......@@ -8,6 +8,15 @@ module Pod
end
end
class Podfile::TargetDefinition
def copy_resources_script_name
UI.warn "TargetDefinition#copy_resources_script_name is deprecated. " \
"The value is accessible directly from the representation of the " \
"library using the #copy_resources_script_path method."
Config.instance.sandbox.root + "#{label}-resources.sh"
end
end
module Hooks
# The installer representation to pass to the hooks.
......
......@@ -32,7 +32,7 @@ module Pod
# @return [Pathname] The path of the script used to copy the resources.
#
def copy_resources_script_name
def copy_resources_script_path
library.copy_resources_script_path
end
......
......@@ -33,7 +33,7 @@ module Pod
it "returns the path of the copy resources script" do
@lib.support_files_root = temporary_directory
@rep.copy_resources_script_name.should == temporary_directory + 'Pods-MyApp-resources.sh'
@rep.copy_resources_script_path.should == temporary_directory + 'Pods-MyApp-resources.sh'
end
it "returns the pods project" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment