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



23
24
25
# File 'lib/redzone/environment.rb', line 23

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

.default_etcPathname

Get the default etc path

Returns:

  • (Pathname)

    default etc path



8
9
10
# File 'lib/redzone/environment.rb', line 8

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

.default_var_namedPathname

Get the default location of the zone file

Returns:

  • (Pathname)

    default zones.yml path



18
19
20
# File 'lib/redzone/environment.rb', line 18

def self.default_var_named
  Pathname.new('/var/named')
end

.default_zonefilePathname

Get the default location of the zone file

Returns:

  • (Pathname)

    default zones.yml path



13
14
15
# File 'lib/redzone/environment.rb', line 13

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