Class: MotionGradle::Aidl
- Inherits:
-
Object
- Object
- MotionGradle::Aidl
- Defined in:
- lib/motion_gradle/aidl.rb
Instance Method Summary collapse
- #create_lib ⇒ Object
-
#initialize(package, aidl_file_path) ⇒ Aidl
constructor
A new instance of Aidl.
- #name ⇒ Object
- #path ⇒ Object
Constructor Details
#initialize(package, aidl_file_path) ⇒ Aidl
Returns a new instance of Aidl.
3 4 5 6 |
# File 'lib/motion_gradle/aidl.rb', line 3 def initialize(package, aidl_file_path) @package = package @aidl_file_path = File.(aidl_file_path) end |
Instance Method Details
#create_lib ⇒ Object
8 9 10 11 12 |
# File 'lib/motion_gradle/aidl.rb', line 8 def create_lib create_structure create_gradle_build_file create_manifest end |
#name ⇒ Object
14 15 16 |
# File 'lib/motion_gradle/aidl.rb', line 14 def name @name ||= File.basename(@aidl_file_path, '.aidl').downcase end |
#path ⇒ Object
18 19 20 |
# File 'lib/motion_gradle/aidl.rb', line 18 def path @path ||= File.join(Motion::Project::Gradle::GRADLE_ROOT, name) end |