Class: JLauncher::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/jlauncher.rb

Overview

A wrapper around the manifest file

Instance Method Summary collapse

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

#dependenciesObject



189
190
191
# File 'lib/jlauncher.rb', line 189

def dependencies
  @json_map['dependencies'].map { |dep| Coordinates.new(dep) }
end

#executable_nameObject



197
198
199
# File 'lib/jlauncher.rb', line 197

def executable_name
  @json_map['executableName']
end

#main_classObject



193
194
195
# File 'lib/jlauncher.rb', line 193

def main_class
  @json_map['mainClass']
end