Class: Installer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInstaller

Returns a new instance of Installer.



6
7
8
# File 'lib/jruby_art/installer.rb', line 6

def initialize
  @processing_ide = ProcessingIde.new
end

Instance Attribute Details

#processing_ideObject (readonly)

Returns the value of attribute processing_ide.



5
6
7
# File 'lib/jruby_art/installer.rb', line 5

def processing_ide
  @processing_ide
end

Instance Method Details

#installObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/jruby_art/installer.rb', line 10

def install
  if processing_ide.installed?
    config = Config.new(
      'processing_ide' => true,
      'library_path' => processing_ide.sketchbook_path)
  else
    config = Config.new('processing_ide' => false)
  end
  config.write_to_file
end