Skip to content

Commit

Permalink
Fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ark-konopacki committed Jun 7, 2016
1 parent cac3abd commit 68a7c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/run_loop/detect_aut/xcode.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'etc'

module RunLoop
# @!visibility private
module DetectAUT
# @!visibility private
module Xcode
require "etc"

# @!visibility private
def xcode_project?
Expand Down Expand Up @@ -166,8 +166,8 @@ def pbuddy
# @!visibility private
def self.detect_selected_device
file_name = find_user_state_file
pbuddy ||= RunLoop::PlistBuddy.new
selected_device = pbuddy.plist_find_device(file_name)
@pbuddy ||= RunLoop::PlistBuddy.new
selected_device = @pbuddy.plist_find_device(file_name)
if selected_device != '' && !selected_device.nil?
udid = selected_device.split(':')[1]
selected_device = RunLoop::Device.device_with_identifier(udid)
Expand Down
2 changes: 1 addition & 1 deletion lib/run_loop/plist_buddy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def plist_read(key, file, opts={})
end
end

# !!Experimental!! find device in xcuserstate file.
# @!visibility private
# @param [String] file the plist to read
# @return [String] the UDID of device
def plist_find_device(file)
Expand Down

0 comments on commit 68a7c1c

Please sign in to comment.