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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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