Class: Screengrab::AndroidEnvironment
- Inherits:
-
Object
- Object
- Screengrab::AndroidEnvironment
- Defined in:
- lib/screengrab/android_environment.rb
Instance Attribute Summary collapse
-
#android_home ⇒ Object
readonly
Returns the value of attribute android_home.
-
#build_tools_version ⇒ Object
readonly
Returns the value of attribute build_tools_version.
Instance Method Summary collapse
- #aapt_path ⇒ Object
- #adb_path ⇒ Object
- #build_tools_path ⇒ Object
-
#initialize(android_home, build_tools_version) ⇒ 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.
- #platform_tools_path ⇒ Object
Constructor Details
#initialize(android_home, build_tools_version) ⇒ 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
8 9 10 11 |
# File 'lib/screengrab/android_environment.rb', line 8 def initialize(android_home, build_tools_version) @android_home = android_home @build_tools_version = build_tools_version end |
Instance Attribute Details
#android_home ⇒ Object (readonly)
Returns the value of attribute android_home.
3 4 5 |
# File 'lib/screengrab/android_environment.rb', line 3 def android_home @android_home end |
#build_tools_version ⇒ Object (readonly)
Returns the value of attribute build_tools_version.
4 5 6 |
# File 'lib/screengrab/android_environment.rb', line 4 def build_tools_version @build_tools_version end |
Instance Method Details
#aapt_path ⇒ Object
25 26 27 |
# File 'lib/screengrab/android_environment.rb', line 25 def aapt_path @aapt_path ||= find_aapt(build_tools_path) end |
#adb_path ⇒ Object
21 22 23 |
# File 'lib/screengrab/android_environment.rb', line 21 def adb_path @adb_path ||= find_adb(platform_tools_path) end |
#build_tools_path ⇒ Object
17 18 19 |
# File 'lib/screengrab/android_environment.rb', line 17 def build_tools_path @build_tools_path ||= find_build_tools(android_home, build_tools_version) end |
#platform_tools_path ⇒ Object
13 14 15 |
# File 'lib/screengrab/android_environment.rb', line 13 def platform_tools_path @platform_tools_path ||= find_platform_tools(android_home) end |