Sha256: 9ae060b176bbf3d3901bfb51eeb325df50e5b5f361c6cf0ea4b7c7b4a9b3603b

Contents?: true

Size: 653 Bytes

Versions: 9

Compression:

Stored size: 653 Bytes

Contents

module JettyRails
  module Adapters
    class AbstractAdapter
      attr_reader :config
      
      def initialize(config)
        @config = config
      end
      
      def base_init_params()
        @base_init_params ||= { 
          'public.root' => '/public',
          'gem.path' => config[:gem_path] || ENV['GEM_PATH'] || 'tmp/war/WEB-INF/gems',
          'jruby.initial.runtimes' => "#{config[:jruby_min_runtimes]}",
          'jruby.min.runtimes' => "#{config[:jruby_min_runtimes]}",
          'jruby.max.runtimes' => "#{config[:jruby_max_runtimes]}"
        }
      end
      
      def event_listeners
        []
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mikewadhera-jetty-rails-0.9.1 lib/jetty_rails/adapters/abstract_adapter.rb
mikewadhera-jetty-rails-0.9.2 lib/jetty_rails/adapters/abstract_adapter.rb
mikewadhera-jetty-rails-0.9.3 lib/jetty_rails/adapters/abstract_adapter.rb
mikewadhera-jetty-rails-0.9 lib/jetty_rails/adapters/abstract_adapter.rb
nolman-jetty-rails-0.9.6-jruby lib/jetty_rails/adapters/abstract_adapter.rb
jetty-rails-0.8.1 lib/jetty_rails/adapters/abstract_adapter.rb
jetty-rails-0.6 lib/jetty_rails/adapters/abstract_adapter.rb
jetty-rails-0.8 lib/jetty_rails/adapters/abstract_adapter.rb
jetty-rails-0.7 lib/jetty_rails/adapters/abstract_adapter.rb