Sha256: 91ba7525caf45d41e86b092500915f4f720a06d48957ff42ca1790759682a0ce

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

raise "hazelcast-jars only runs on JRuby. Sorry!" unless (RUBY_PLATFORM =~ /java/)

module Hazelcast
  class Jars

    GEM_ROOT = File.expand_path(File.dirname(__FILE__)) unless defined?(GEM_ROOT)
    $:.unshift(GEM_ROOT) unless $:.include?(GEM_ROOT)

    class << self

      def version
        @version ||= File.read File.expand_path(GEM_ROOT + '/../VERSION')
      end

      def client
        require "hazelcast-client-#{version}.jar"
      end

      def server
        require "hazelcast-#{version}.jar"
      end

      def all
        [server, client]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hazelcast-jars-2.5.1-jruby lib/hazelcast-jars.rb
hazelcast-jars-1.9.4.8-jruby lib/hazelcast-jars.rb