scan/lib/scan/commands_generator.rb in fastlane-2.74.1 vs scan/lib/scan/commands_generator.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -54,11 +54,11 @@
UI.user_error!("Scanfile already exists").yellow if File.exist?(path)
is_swift_fastfile = args.include?("swift")
if is_swift_fastfile
path = File.join(containing, Scan.scanfile_name + ".swift")
- UI.user_error! "Scanfile.swift already exists" if File.exist?(path)
+ UI.user_error!("Scanfile.swift already exists") if File.exist?(path)
end
if is_swift_fastfile
template = File.read("#{Scan::ROOT}/lib/assets/ScanfileTemplate.swift")
else
@@ -68,10 +68,10 @@
File.write(path, template)
UI.success("Successfully created '#{path}'. Open the file using a code editor.")
end
end
- default_command :tests
+ default_command(:tests)
run!
end
end
end