Class: Puppet::Util::WindowsRunMode

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


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

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

#conf_dirObject


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

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

#log_dirObject


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

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

#run_dirObject


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

def run_dir
  which_dir(File.join(windows_common_base("puppet/var/run")), "~/.puppetlabs/var/run")
end

#var_dirObject


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

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