module RGeoServer

RGeoServer is a Ruby client for the GeoServer RESTful Configuration interface.

Uses config/defaults.yml or $RGEOSERVER_CONFIG from environment See rubygems.org/gems/confstruct for details on file format

Constants

Config
VERSION

Public Class Methods

catalog(opts = nil, reload = false) click to toggle source

@return [Catalog] the default GeoServer Catalog instance

# File lib/rgeoserver.rb, line 33
def self.catalog opts = nil, reload = false
  @@catalog ||= nil
  if reload || @@catalog.nil?
    @@catalog = RGeoServer::Catalog.new (opts.nil?? RGeoServer::Config[:geoserver] : opts)
  end
  @@catalog
end
version() click to toggle source
# File lib/rgeoserver/version.rb, line 3
def self.version
  @@version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
end