Class: ShadowPuppet::Manifest::Setup
- Inherits:
-
ShadowPuppet::Manifest
- Object
- ShadowPuppet::Manifest
- ShadowPuppet::Manifest::Setup
- Defined in:
- lib/shadow_puppet.rb
Instance Attribute Summary
Attributes inherited from ShadowPuppet::Manifest
Instance Method Summary collapse
Methods inherited from ShadowPuppet::Manifest
#executable?, #execute, #initialize, #name, #options, puppet_type_methods, recipe
Constructor Details
This class inherits a constructor from ShadowPuppet::Manifest
Instance Method Details
#setup_directories ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/shadow_puppet.rb', line 6 def setup_directories() if Process.uid == 0 file "/var/puppet", :ensure => "directory", :backup => false else file ENV["HOME"] + "/.puppet", :ensure => "directory", :backup => false file ENV["HOME"] + "/.puppet/var", :ensure => "directory", :backup => false, :require => file(ENV["HOME"] + "/.puppet") end end |