Module: Core

Defined in:
lib/jruby_art/core.rb

Overview

module encapsulates a check that the PROCESSING_ROOT exists

Class Method Summary collapse

Class Method Details

.check?(path) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/jruby_art/core.rb', line 4

def self.check?(path)
  if File.directory?(path)
    core_path = File.join(path, 'core/library/core.jar')
    return true if File.exist?(core_path)
    warn format('%s jar does not exist', core_path)
  else warn format('%s directory does not exist', path)
  end
end