asca 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asca/rest/provisioning/profiles.rb +7 -1
- data/lib/asca/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c715bb7395fb39231c5a0b4fb07151135e8b03a7858f19bfcf3a012bd11ebc7
|
4
|
+
data.tar.gz: 474d92c7138cd5473670be1d98b01379da3e59ccfb7ec96abccab9171e0eeba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53d468d7e463bf67ec9be6ba55a5156eae1545e73d6a5793a8ddc282e140fb98800e1735be49aa8551a31129f6c3d0eb8fdda65ef0bf500f02516278448cbfb7
|
7
|
+
data.tar.gz: a057952623638f3bd984b8e96fc8b801b37abfcb877004c460200c2810e2e37b72e80595f3c21ab29be91678e79f58302f2f950559d379297c5acc64bb62b455
|
@@ -143,6 +143,7 @@ module Asca
|
|
143
143
|
response = HTTP.auth('Bearer ' + Asca::Tools::Token.new_token).get(profile["relationships"]["certificates"]["links"]["self"])
|
144
144
|
certificate_ids = JSON.parse(response.body)["data"].map { |cer| cer["id"] }
|
145
145
|
|
146
|
+
# get all device ids
|
146
147
|
device_ids = Asca::REST::Provisioning::Devices.list_devices.map { |device|
|
147
148
|
device["id"]
|
148
149
|
}
|
@@ -150,7 +151,12 @@ module Asca
|
|
150
151
|
# delete old prifile
|
151
152
|
delete_profile :name => options[:name]
|
152
153
|
|
153
|
-
|
154
|
+
if profile_type.include? 'APP_STORE'
|
155
|
+
create_new_profile :name => options[:name], :type => profile_type, :bundle_id => bundle_id, :certificate_ids => certificate_ids
|
156
|
+
else
|
157
|
+
create_new_profile :name => options[:name], :type => profile_type, :bundle_id => bundle_id, :device_ids => device_ids, :certificate_ids => certificate_ids
|
158
|
+
end
|
159
|
+
|
154
160
|
return true
|
155
161
|
end
|
156
162
|
end
|
data/lib/asca/version.rb
CHANGED