module Servolux

Constants

Error

Generic Servolux Error class.

VERSION

Public Class Methods

NullLogger() click to toggle source

Syntactic sugar for getting the null logger instance.

Servolux::NullLogger()   #=> NullLogger singleton instance
# File lib/servolux/null_logger.rb, line 16
def self.NullLogger
  NullLogger.instance
end
fork?() click to toggle source

Returns true if the execution platform supports fork.

@return [Boolean]

# File lib/servolux.rb, line 35
def self.fork?
  RUBY_PLATFORM != 'java' and test(e, '/dev/null')
end
libpath( *args ) click to toggle source

Returns the library path for the module. If any arguments are given, they will be joined to the end of the library path using File.join.

@return [String] absolute servolux ‘lib’ path

# File lib/servolux.rb, line 17
def self.libpath( *args )
  args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
end
path( *args ) click to toggle source

Returns the lpath for the module. If any arguments are given, they will be joined to the end of the servolux base path using File.join.

@return [String] absolute servolux base path

# File lib/servolux.rb, line 27
def self.path( *args )
  args.empty? ? PATH : ::File.join(PATH, args.flatten)
end
version() click to toggle source

Returns the version string for the library.

# File lib/servolux/version.rb, line 5
def self.version
  VERSION
end