Class: Screengrab::AndroidEnvironment
- Inherits:
-
Object
- Object
- Screengrab::AndroidEnvironment
- Defined in:
- screengrab/lib/screengrab/android_environment.rb
Instance Attribute Summary collapse
-
#android_home ⇒ Object
readonly
Returns the value of attribute android_home.
Instance Method Summary collapse
- #adb_path ⇒ Object
-
#initialize(android_home, build_tools_version = nil) ⇒ AndroidEnvironment
constructor
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.
- #platform_tools_path ⇒ Object
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_home ⇒ Object (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_path ⇒ Object
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_path ⇒ Object
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 |