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

cleaned some stuff

parent 853cccc1
......@@ -57,3 +57,4 @@ module Pod
end
end
end
......@@ -13,7 +13,7 @@ module Pod
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"
Pod::Config::Environment.instance.sandbox.root + "#{label}-resources.sh"
end
end
......@@ -23,6 +23,8 @@ module Pod
#
class InstallerRepresentation
include Pod::Config
public
# @!group Public Hooks API
......@@ -98,19 +100,6 @@ module Pod
# The interface of the following objects might change at any time.
# 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.
#
attr_reader :installer
......
......@@ -8,7 +8,7 @@ module Bacon
environment.stubs(:repos_dir).returns(fixture('spec-repos'))
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(:skip_repo_update).returns(true)
......
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