Class: Screengrab::AndroidEnvironment

Inherits:
Object
  • Object
show all
Defined in:
screengrab/lib/screengrab/android_environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(android_home, build_tools_version = nil) ⇒ AndroidEnvironment

android_home - the String path to the install location of the Android SDK build_tools_version - the String version of the Android build tools that should be used, ignored



10
11
12
# File 'screengrab/lib/screengrab/android_environment.rb', line 10

def initialize(android_home, build_tools_version = nil)
  @android_home = android_home
end

Instance Attribute Details

#android_homeObject (readonly)

Returns the value of attribute android_home.



6
7
8
# File 'screengrab/lib/screengrab/android_environment.rb', line 6

def android_home
  @android_home
end

Instance Method Details

#adb_pathObject



18
19
20
# File 'screengrab/lib/screengrab/android_environment.rb', line 18

def adb_path
  @adb_path ||= find_adb(platform_tools_path)
end

#platform_tools_pathObject



14
15
16
# File 'screengrab/lib/screengrab/android_environment.rb', line 14

def platform_tools_path
  @platform_tools_path ||= find_platform_tools(android_home)
end