Skip to content

Commit

Permalink
[match] Correct how match handles enterprise adhoc (#12281)
Browse files Browse the repository at this point in the history
* [match] Correct how match handles enterprise adhoc

* Rubo stuf

* I think i need this
  • Loading branch information
Josh Holtz committed Apr 17, 2018
1 parent bd27261 commit d0c3b3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion match/lib/match/module.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'spaceship'
require 'fastlane_core/helper'

module Match
Expand All @@ -15,7 +16,7 @@ def self.profile_type_sym(type)
end

def self.cert_type_sym(type)
return :enterprise if type == "enterprise"
return :enterprise if type == "enterprise" || (type == "adhoc" && Spaceship.client.in_house?)
return :development if type == "development"
return :distribution if ["adhoc", "appstore", "distribution"].include?(type)
raise "Unknown cert type: '#{type}'"
Expand Down
2 changes: 2 additions & 0 deletions sigh/lib/sigh/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def certificates_for_profile_and_platform
certificates = Spaceship.certificate.development.all
elsif profile_type == Spaceship.provisioning_profile.InHouse
certificates = Spaceship.certificate.in_house.all
elsif profile_type == Spaceship.provisioning_profile.AdHoc && Spaceship.client.in_house?
certificates = Spaceship.certificate.in_house.all
else
certificates = Spaceship.certificate.production.all # Ad hoc or App Store
end
Expand Down

0 comments on commit d0c3b3f

Please sign in to comment.