lib/poolparty/resources/exec.rb in auser-poolparty-1.2.10 vs lib/poolparty/resources/exec.rb in auser-poolparty-1.2.11

- old
+ new

@@ -27,9 +27,16 @@ dsl_methods :cwd, :creates, :command default_options({ :path => ["/usr/bin:/bin:/usr/local/bin:$PATH"] }) + + def loaded(o={}) + if user + name "sudo -u #{user} -H #{name}" + dsl_options.delete(:user) + end + end def present nil end \ No newline at end of file