pilot/lib/pilot/build_manager.rb in fastlane-2.86.0.beta.20180316050051 vs pilot/lib/pilot/build_manager.rb in fastlane-2.86.0.beta.20180317050040
- old
+ new
@@ -13,11 +13,11 @@
options[:changelog] = self.class.truncate_changelog(options[:changelog]) if options[:changelog]
UI.user_error!("No ipa file given") unless config[:ipa]
- if options[:changelog].nil? and options[:distribute_external] == true
+ if options[:changelog].nil? && options[:distribute_external] == true
if UI.interactive?
options[:changelog] = UI.input("No changelog provided for new build. Please provide a changelog. You can also provide a changelog using the `changelog` option")
else
UI.user_error!("No changelog provided for new build. Please either disable `distribute_external` or provide a changelog using the `changelog` option")
end
@@ -60,11 +60,11 @@
distribute(options, build: latest_build)
end
def distribute(options, build: nil)
start(options)
- if config[:apple_id].to_s.length == 0 and config[:app_identifier].to_s.length == 0
+ if config[:apple_id].to_s.length == 0 && config[:app_identifier].to_s.length == 0
config[:app_identifier] = UI.input("App Identifier: ")
end
build ||= Spaceship::TestFlight::Build.latest(app_id: app.apple_id, platform: fetch_app_platform)
if build.nil?
@@ -100,10 +100,10 @@
UI.success("Successfully distributed build to #{type} testers 🚀")
end
def list(options)
start(options)
- if config[:apple_id].to_s.length == 0 and config[:app_identifier].to_s.length == 0
+ if config[:apple_id].to_s.length == 0 && config[:app_identifier].to_s.length == 0
config[:app_identifier] = UI.input("App Identifier: ")
end
platform = fetch_app_platform(required: false)
builds = app.all_processing_builds(platform: platform) + app.builds(platform: platform)