Commit 405a41d7 authored by Fabio Pelosin's avatar Fabio Pelosin

[LocalPod] Store the platform.

The specification class only stores the active platform symbol.
parent 5334e67b
......@@ -34,6 +34,10 @@ module Pod
#
attr_reader :sandbox
# @return [Platform] The platform that will be used to build the pod.
#
attr_reader :platform
# @param [Specification] specification
# The first activated specification of the pod.
# @param [Sandbox] sandbox
......@@ -46,7 +50,7 @@ module Pod
# computed values. In other words, it should be immutable.
#
def initialize(specification, sandbox, platform)
@top_specification, @sandbox = specification.top_level_parent, sandbox
@top_specification, @sandbox, @platform = specification.top_level_parent, sandbox, platform
@top_specification.activate_platform(platform)
@specifications = [] << specification
end
......@@ -96,12 +100,6 @@ module Pod
top_specification.name
end
# @return [Platform] The platform that will be used to build the pod.
#
def platform
top_specification.active_platform
end
# @!group Installation
# Creates the root path of the pod.
......
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