lib/ambient.rb in ambient-xcode-0.3.0 vs lib/ambient.rb in ambient-xcode-0.4.0
- old
+ new
@@ -19,10 +19,11 @@
@shared_target_options = {}
@target_options = {}
@scheme_options = {}
@parents = {}
@capabilities = {}
+ @development_teams = {}
def configure(&block)
instance_eval &block
end
@@ -62,10 +63,14 @@
def set_capability(target_name, capability_name)
capabilities = @capabilities[target_name] ||= []
capabilities << capability_name
end
+ def set_development_team(target_name, team_name)
+ @development_teams[target_name] = team_name
+ end
+
def setup_project(ambientfile)
run_ambientfile(ambientfile)
project_helper.print_info
reset_project_to_defaults if @use_defaults
reset_targets_to_defaults if @use_defaults
@@ -73,10 +78,11 @@
process_project_options
process_scheme_options
process_shared_target_options
process_target_options
process_capabilities
+ process_development_teams
project_helper.save_changes
end
def reset_project_to_defaults
puts "resetting project settings to xcode default settings"
@@ -115,9 +121,14 @@
end
def process_capabilities
puts "applying ambient capabilities"
project_helper.process_capabilities(@capabilities)
+ end
+
+ def process_development_teams
+ puts "applying ambient development teams"
+ project_helper.process_development_teams(@development_teams)
end
def load_in_parent_target_values
@parents.each do |target, parents|
parents.each do |child, parent|