Commit 389bbb6b authored by Michele's avatar Michele

Last unit test updates for sandbox.

parent 83726076
...@@ -91,7 +91,7 @@ module Pod ...@@ -91,7 +91,7 @@ module Pod
def migrate_installation_if_needed def migrate_installation_if_needed
UI.section "Performing existing installation migration" do UI.section "Performing existing installation migration" do
migrator = Migrator.new(lockfile.cocoapods_version, sandbox) migrator = Migrator.new(sandbox)
migrator.migrate! migrator.migrate!
end end
end end
......
...@@ -15,15 +15,16 @@ module Pod ...@@ -15,15 +15,16 @@ module Pod
# #
# #
def initialize(installation_version, sandbox) def initialize(sandbox)
@installation_version = installation_version
@sandbox = sandbox @sandbox = sandbox
end end
# #
# #
def migrate! def migrate!
migrate_to_0_20 if version_minor('0.20') if sandbox.manifest
migrate_to_0_20 if version_minor('0.20')
end
end end
#-----------------------------------------------------------------------# #-----------------------------------------------------------------------#
...@@ -67,6 +68,10 @@ module Pod ...@@ -67,6 +68,10 @@ module Pod
installation_version < Version.new(target_version) installation_version < Version.new(target_version)
end end
def installation_version
sandbox.manifest.cocoapods_version
end
def mkdir(path) def mkdir(path)
path.mkpath path.mkpath
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