Class: JLauncher::Manifest
- Inherits:
-
Object
- Object
- JLauncher::Manifest
- Defined in:
- lib/jlauncher.rb
Overview
A wrapper around the manifest file
Instance Method Summary collapse
- #dependencies ⇒ Object
- #executable_name ⇒ Object
-
#initialize(json_map) ⇒ Manifest
constructor
A new instance of Manifest.
- #main_class ⇒ Object
Constructor Details
#initialize(json_map) ⇒ Manifest
Returns a new instance of Manifest.
185 186 187 |
# File 'lib/jlauncher.rb', line 185 def initialize(json_map) @json_map = json_map end |
Instance Method Details
#dependencies ⇒ Object
189 190 191 |
# File 'lib/jlauncher.rb', line 189 def dependencies @json_map['dependencies'].map { |dep| Coordinates.new(dep) } end |
#executable_name ⇒ Object
197 198 199 |
# File 'lib/jlauncher.rb', line 197 def executable_name @json_map['executableName'] end |
#main_class ⇒ Object
193 194 195 |
# File 'lib/jlauncher.rb', line 193 def main_class @json_map['mainClass'] end |