9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/cocoapods-pod-sign/podfile_dsl.rb', line 9
def config_pod_bundle_id_and_team_id(configurations)
unless configurations.instance_of?(Hash)
UI.info 'config_pod_bundle_id_and_team_id parameters not hash'.red
return
end
configurations.each do |name, configuration|
unless configuration.instance_of?(Hash)
UI.info 'config_pod_bundle_id_and_team_id parameters not hash'.red
return
end
unless configuration[:bundle_id] && configuration[:team_id]
UI.info 'config_pod_bundle_id_and_team_id parameters parameters error'.red
return
end
end
UI.info 'config_pod_bundle_id_and_team_id parameters setup success'
storage = PodSignStorage.instance
storage.configurations = configurations
end
|