Class: Mdq::Discovery

Inherits:
Object
  • Object
show all
Defined in:
lib/mdq/discovery.rb

Overview

Discovery

Direct Known Subclasses

DB

Instance Method Summary collapse

Constructor Details

#initializeDiscovery

rubocop:disable Metrics/ClassLength



11
12
13
# File 'lib/mdq/discovery.rb', line 11

def initialize
  @home = FileUtils.mkdir_p([Dir.home, '.mdq'].join(File::Separator))
end

Instance Method Details

#android_discoverable?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/mdq/discovery.rb', line 15

def android_discoverable?
  adb_command('version').present?
end

#apple_discoverable?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/mdq/discovery.rb', line 19

def apple_discoverable?
  apple_command('--version').present?
end