Class: FlutterRb::GradleParser
- Inherits:
-
Object
- Object
- FlutterRb::GradleParser
- Defined in:
- lib/flutter_rb/project/specs/android/gradle.rb
Overview
Gradle parser
Instance Method Summary collapse
-
#initialize(path) ⇒ GradleParser
constructor
A new instance of GradleParser.
- #parse ⇒ Object
Constructor Details
#initialize(path) ⇒ GradleParser
Returns a new instance of GradleParser.
16 17 18 |
# File 'lib/flutter_rb/project/specs/android/gradle.rb', line 16 def initialize(path) @path = path end |
Instance Method Details
#parse ⇒ Object
20 21 22 23 24 25 |
# File 'lib/flutter_rb/project/specs/android/gradle.rb', line 20 def parse `gradle -p #{@path} -q prepareInfo` info_file = File.read "#{@path}/flutter_rb_gradle_plugin_output.json" info = JSON.parse info_file Gradle.new(@path, info['version']) end |