First of all, cwd points to a file in your case and not to a directory.
Next, you should escape quote characters, so if u use singlequote (') in
a puppet, which you should, then any occurrence of singlequote inside
your intended string should be escaped. So, your resource should look
like this:
exec { 'GIT PS1 Variable':
cwd => '/home/developer',
command => '/bin/echo "PS1=\'[\u@\h \W\$(__git_ps1 " \""
(%s)"\"")]\$ \' " >> /home/developer/.bashrc',
user => developer,
group => developer,
}
Note the escape (\) character in:
"PS1=\'
and:
$ \' " >>
--
Jakov Sosic
www.srce.unizg.hr