Class: Puppet::Util::UnixRunMode

Inherits:
RunMode show all
Defined in:
lib/puppet/util/run_mode.rb

Instance Attribute Summary

Attributes inherited from RunMode

#name

Instance Method Summary collapse

Methods inherited from RunMode

[], #agent?, #initialize, #master?, #user?

Constructor Details

This class inherits a constructor from Puppet::Util::RunMode

Instance Method Details

#code_dirObject



65
66
67
# File 'lib/puppet/util/run_mode.rb', line 65

def code_dir
  which_dir("/etc/puppetlabs/code", "~/.puppetlabs/etc/code")
end

#conf_dirObject



61
62
63
# File 'lib/puppet/util/run_mode.rb', line 61

def conf_dir
  which_dir("/etc/puppetlabs/puppet", "~/.puppetlabs/etc/puppet")
end

#log_dirObject



77
78
79
# File 'lib/puppet/util/run_mode.rb', line 77

def log_dir
  which_dir("/var/log/puppetlabs/puppet", "~/.puppetlabs/var/log")
end

#run_dirObject



73
74
75
# File 'lib/puppet/util/run_mode.rb', line 73

def run_dir
  which_dir("/var/run/puppetlabs", "~/.puppetlabs/var/run")
end

#var_dirObject



69
70
71
# File 'lib/puppet/util/run_mode.rb', line 69

def var_dir
  which_dir("/opt/puppetlabs/puppet/cache", "~/.puppetlabs/opt/puppet/cache")
end