Class: Check

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

Overview

Configuration checker

Instance Attribute Summary

Attributes inherited from Installer

#confd, #gem_root, #os, #sketch

Instance Method Summary collapse

Methods inherited from Installer

#config, #initialize, #root_exist?, #set_processing_root, #show_version

Constructor Details

This class inherits a constructor from Installer

Instance Method Details

#installObject



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/jruby_art/installer.rb', line 65

def install
  show_version
  return super unless config
  installed = File.exist? File.join(gem_root, 'lib/ruby/jruby-complete.jar')
  proot = '  PROCESSING_ROOT = Not Set Correctly!!!' unless root_exist?
  proot ||= "  PROCESSING_ROOT = #{config['PROCESSING_ROOT']}"
  sketchbook = "  sketchbook_path = #{config['sketchbook_path']}"
  template = "  template = #{config['template']}"
  java_args = "  java_args = #{config['java_args']}"
  max_watch = "  MAX_WATCH = #{config['MAX_WATCH']}"
  jruby = config.fetch('JRUBY', true)
  puts proot
  puts "  JRUBY = #{jruby}" unless jruby.nil?
  puts "  jruby-complete installed = #{installed}"
  puts sketchbook
  puts template
  puts java_args
  puts max_watch
end