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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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