Class: Puppet::Util::WindowsRunMode 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.


95
96
97
# File 'lib/puppet/util/run_mode.rb', line 95

def code_dir
  which_dir(File.join(windows_common_base("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.


91
92
93
# File 'lib/puppet/util/run_mode.rb', line 91

def conf_dir
  which_dir(File.join(windows_common_base("puppet/etc")), "~/.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.


111
112
113
# File 'lib/puppet/util/run_mode.rb', line 111

def log_dir
  which_dir(File.join(windows_common_base("puppet/var/log")), "~/.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.


103
104
105
# File 'lib/puppet/util/run_mode.rb', line 103

def public_dir
  which_dir(File.join(windows_common_base("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.


107
108
109
# File 'lib/puppet/util/run_mode.rb', line 107

def run_dir
  which_dir(File.join(windows_common_base("puppet/var/run")), "~/.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.


99
100
101
# File 'lib/puppet/util/run_mode.rb', line 99

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