Class: Puppet::Util::UnixRunMode
Instance Attribute Summary
Attributes inherited from RunMode
#name
Instance Method Summary
collapse
Methods inherited from RunMode
[], #agent?, #initialize, #master?, #server?, #user?
Instance Method Details
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_dir ⇒ Object
99
100
101
|
# File 'lib/puppet/util/run_mode.rb', line 99
def common_module_dir
'/opt/puppetlabs/puppet/modules'
end
|
67
68
69
|
# File 'lib/puppet/util/run_mode.rb', line 67
def conf_dir
which_dir("/etc/puppetlabs/puppet", "~/.puppetlabs/etc/puppet")
end
|
95
96
97
|
# File 'lib/puppet/util/run_mode.rb', line 95
def gem_cmd
'/opt/puppetlabs/puppet/bin/gem'
end
|
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_path ⇒ Object
91
92
93
|
# File 'lib/puppet/util/run_mode.rb', line 91
def pkg_config_path
'/opt/puppetlabs/puppet/lib/pkgconfig'
end
|
#public_dir ⇒ Object
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
|
83
84
85
|
# File 'lib/puppet/util/run_mode.rb', line 83
def run_dir
which_dir("/var/run/puppetlabs", "~/.puppetlabs/var/run")
end
|
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_dir ⇒ Object
103
104
105
|
# File 'lib/puppet/util/run_mode.rb', line 103
def vendor_module_dir
'/opt/puppetlabs/puppet/vendor_modules'
end
|