Module: RedZone::Environment

Defined in:
lib/redzone/environment.rb

Overview

RedZone environment properties

Class Method Summary collapse

Class Method Details

.default_configfilePathname

Get the default location of the config file

Returns:

  • (Pathname)

    default config.yml path



16
17
18
# File 'lib/redzone/environment.rb', line 16

def self.default_configfile
  self.default_etc.join('config.yml')
end

.default_etcPathname

Get the default etc path

Returns:

  • (Pathname)

    default etc path



6
7
8
# File 'lib/redzone/environment.rb', line 6

def self.default_etc
  Pathname.new('/etc/redzone')
end

.default_zonefilePathname

Get the default location of the zone file

Returns:

  • (Pathname)

    default zones.yml path



11
12
13
# File 'lib/redzone/environment.rb', line 11

def self.default_zonefile
  self.default_etc.join('zones.yml')
end