Class: Puppet::Util::UnixRunMode Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from RunMode

#name

Instance Method Summary collapse

Methods inherited from RunMode

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

Constructor Details

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

Instance Method Details

#code_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

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

#conf_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

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

#log_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


85
86
87
# File 'lib/puppet/util/run_mode.rb', line 85

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

#public_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

def public_dir
  which_dir("/opt/puppetlabs/puppet/public", "~/.puppetlabs/opt/puppet/public")
end

#run_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


81
82
83
# File 'lib/puppet/util/run_mode.rb', line 81

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

#var_dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

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