snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.74.1 vs snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -66,11 +66,11 @@
make_phone_watch_pair
end
def self.create(device_type, os_versions, os_name = 'iOS')
os_versions.each do |os_version|
- puts "Creating #{device_type[0]} for #{os_name} version #{os_version[0]}"
+ puts("Creating #{device_type[0]} for #{os_name} version #{os_version[0]}")
command = "xcrun simctl create '#{device_type[0]}' #{device_type[1]} #{os_version[1]}"
UI.command(command) if FastlaneCore::Globals.verbose?
`#{command}`
end
end
@@ -108,10 +108,10 @@
phones << id if name.start_with?('iPhone 6') && device_line_usable?(full_line)
watches << id if name.end_with?('mm') && device_line_usable?(full_line)
end
if phones.any? && watches.any?
- puts "Creating device pair of #{phones.last} and #{watches.last}"
+ puts("Creating device pair of #{phones.last} and #{watches.last}")
Helper.backticks("xcrun simctl pair #{watches.last} #{phones.last}", print: FastlaneCore::Globals.verbose?)
end
end
def self.device_line_usable?(line)