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 ⇒ Gradle
Constructor Details
#initialize(path) ⇒ GradleParser
Returns a new instance of GradleParser.
19 20 21 |
# File 'lib/flutter_rb/project/specs/android/gradle.rb', line 19 def initialize(path) @path = path end |
Instance Method Details
#parse ⇒ Gradle
24 25 26 27 28 29 |
# File 'lib/flutter_rb/project/specs/android/gradle.rb', line 24 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 |