Class: Puppet::Util::UnixRunMode

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?, #server?, #user?

Constructor Details

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

Instance Method Details

#code_dirObject



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

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

#common_module_dirObject



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

def common_module_dir
  '/opt/puppetlabs/puppet/modules'
end

#conf_dirObject



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

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

#gem_cmdObject



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

def gem_cmd
  '/opt/puppetlabs/puppet/bin/gem'
end

#log_dirObject



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

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

#pkg_config_pathObject



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

def pkg_config_path
  '/opt/puppetlabs/puppet/lib/pkgconfig'
end

#public_dirObject



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

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

#run_dirObject



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

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

#var_dirObject



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

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

#vendor_module_dirObject



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

def vendor_module_dir
  '/opt/puppetlabs/puppet/vendor_modules'
end