lib/match/nuke.rb in match-0.2.3 vs lib/match/nuke.rb in match-0.2.4

- old
+ new

@@ -168,18 +168,18 @@ # The kind of certificate we're interested in def certificate_type(type) cert_type = Spaceship.certificate.production cert_type = Spaceship.certificate.development if type == :development - cert_type = Spaceship.certificate.in_house if ENV["MATCH_FORCE_ENTERPRISE"] && Spaceship.client.in_house? + cert_type = Spaceship.certificate.in_house if Match.enterprise? && Spaceship.client.in_house? cert_type end # The kind of provisioning profile we're interested in def profile_type(type) profile_type = Spaceship.provisioning_profile.app_store - profile_type = Spaceship.provisioning_profile.in_house if ENV["MATCH_FORCE_ENTERPRISE"] && Spaceship.client.in_house? + profile_type = Spaceship.provisioning_profile.in_house if Match.enterprise? && Spaceship.client.in_house? profile_type = Spaceship.provisioning_profile.ad_hoc if type == :adhoc profile_type = Spaceship.provisioning_profile.development if type == :development profile_type end