snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.14.2 vs snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.15.0.beta.20170213032052
- old
+ new
@@ -56,11 +56,11 @@
def self.filter_runtimes(all_runtimes, os = 'iOS', versions = [])
all_runtimes.select { |v, id| v[/^#{os}/] }.select { |v, id| v[/#{versions.join("|")}$/] }
end
def self.devices
- all_devices = Helper.backticks('xcrun simctl list devices', print: $verbose)
+ all_devices = Helper.backticks('xcrun simctl list devices', print: FastlaneCore::Globals.verbose?)
# == Devices ==
# -- iOS 9.0 --
# iPhone 4s (32246EBC-33B0-47F9-B7BB-5C23C550DF29) (Shutdown)
# iPhone 5 (4B56C101-6B95-43D1-9485-3FBA0E127FFA) (Shutdown)
# iPhone 5s (6379C204-E82A-4FBD-8A22-6A01C7791D62) (Shutdown)
@@ -83,10 +83,10 @@
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}"
- Helper.backticks("xcrun simctl pair #{watches.last} #{phones.last}", print: $verbose)
+ Helper.backticks("xcrun simctl pair #{watches.last} #{phones.last}", print: FastlaneCore::Globals.verbose?)
end
end
def self.device_line_usable?(line)
!line.include?("unavailable")