Commit 4064048d authored by Marin Usalj's avatar Marin Usalj

cleaned some stuff

parent 853cccc1
...@@ -57,3 +57,4 @@ module Pod ...@@ -57,3 +57,4 @@ module Pod
end end
end end
end end
...@@ -13,7 +13,7 @@ module Pod ...@@ -13,7 +13,7 @@ module Pod
UI.warn "TargetDefinition#copy_resources_script_name is deprecated. " \ UI.warn "TargetDefinition#copy_resources_script_name is deprecated. " \
"The value is accessible directly from the representation of the " \ "The value is accessible directly from the representation of the " \
"library using the #copy_resources_script_path method." "library using the #copy_resources_script_path method."
Config.instance.sandbox.root + "#{label}-resources.sh" Pod::Config::Environment.instance.sandbox.root + "#{label}-resources.sh"
end end
end end
...@@ -23,6 +23,8 @@ module Pod ...@@ -23,6 +23,8 @@ module Pod
# #
class InstallerRepresentation class InstallerRepresentation
include Pod::Config
public public
# @!group Public Hooks API # @!group Public Hooks API
...@@ -98,19 +100,6 @@ module Pod ...@@ -98,19 +100,6 @@ module Pod
# The interface of the following objects might change at any time. # The interface of the following objects might change at any time.
# If there some information which is needed, please open an issue. # If there some information which is needed, please open an issue.
# @return [Sandbox] sandbox the sandbox where the support files should
# be generated.
#
def sandbox
installer.sandbox
end
# @return [Config] The config singleton used for the installation.
#
def config
Config.instance
end
# @return [Installer] The installer described by this instance. # @return [Installer] The installer described by this instance.
# #
attr_reader :installer attr_reader :installer
......
...@@ -8,7 +8,7 @@ module Bacon ...@@ -8,7 +8,7 @@ module Bacon
environment.stubs(:repos_dir).returns(fixture('spec-repos')) environment.stubs(:repos_dir).returns(fixture('spec-repos'))
environment.stubs(:installation_root).returns(SpecHelper.temporary_directory) environment.stubs(:installation_root).returns(SpecHelper.temporary_directory)
environment.stubs(:home_dir).returns(SpecHelper.temporary_directory) environment.stubs(:verbose).returns(true)
config.stubs(:silent).returns(true) config.stubs(:silent).returns(true)
config.stubs(:skip_repo_update).returns(true) config.stubs(:skip_repo_update).returns(true)
......
...@@ -80,3 +80,4 @@ module Pod ...@@ -80,3 +80,4 @@ module Pod
end end
end end
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