Sha256: 654fae3d92cf843b5e474051262c422e83649abba1ea7e6a13e3e9bce14b5c09

Contents?: true

Size: 404 Bytes

Versions: 12

Compression:

Stored size: 404 Bytes

Contents

module Neo4j
  module Tasks

    module ConfigServer

      def config(data, port)
        s = set_property(data, 'org.neo4j.server.webserver.https.enabled', 'false')
        set_property(s, 'org.neo4j.server.webserver.port', port)
      end

      def set_property(data, property, value)
        data.gsub(/#{property}\s*=\s*(\w+)/, "#{property}=#{value}")
      end

      extend self
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
neo4j-core-3.0.8 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.7 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.6 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.5 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.4 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.3 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.2 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.1 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.0 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.0.rc.5 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.0.rc.4 lib/neo4j/tasks/config_server.rb
neo4j-core-3.0.0.rc.1 lib/neo4j/tasks/config_server.rb