--Apple-Mail=_D1CABA36-8FEA-4ED4-A56F-CFE75095AA86
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hello,

I'd like to create the following '.plist' (XML) file[1] from within a =
ruby program:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" =
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version=3D"1.0">
	<dict>
		<key>Label</key>
		<string>org.atma.local</string>
		<key>ProgramArguments</key>
		<array>
			=
<string>/Users/atma/Code/scripts/local.sh</string>
		</array>
		<key>StartInterval</key>
		<integer>3600</integer>
		<key>RunAtLoad</key>
		<true/>
	</dict>
</plist>


I would like to have variables for 'integer' (e.g. <integer><%=3D var =
%></interger> or something). What is the best way to create a predefined =
file? I've code around using a strange notation '<<' when it comes to =
dumping lines of text or XML into ruby scripts but I can't find any =
specific examples right now.

best regards,


[1] https://gist.github.com/atmosx/10936292


Panagiotis (atmosx) Atmatzidis

email:	atma / convalesco.org
URL:	http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

"As you set out for Ithaca, hope the voyage is a long one, full of =
adventure, full of discovery [...]" - C. P. Cavafy





--Apple-Mail=_D1CABA36-8FEA-4ED4-A56F-CFE75095AA86
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: Public Key Encryption

iQIcBAEBAgAGBQJTTvvYAAoJEPy01a8ae/7FdOIP+gOfmu7kyzeFtMNUqccbNXV+
yjiL+LfUgCLDXOePd49cBX/GcQUa2NXcMqW77AkVGdE7QM2uvcq/yeFPCl3F5fSW
H4OR3evulJ8b4G2m5z49smVON61ZYzAMLo5Zx2dOtlR+F2PigbtyUm8aBOb8apzW
LQD8KuQigfW4T7ZikIBoY2tAVWmfpaGKiWNi0Py1ithBWBJSPwE1IVxJOI+UqfyP
A35JgK4otWxfrMfbpWeZepzYmuuz3bOufowe/2pZJR5jNmf21oyflBkr9QlDdW3g
gQ81rc8rafbwSpifaKkaq1FM5kl4XuEcjbXR44QPCTOlW7D9eRNcczwMINdsbB4e
/DE4C3tAdwlZNjZ4JmNRXzEXMVkto5JXRSKtr/LO1FPKqb8oeD9HW6k3jrsS1dln
fIKVKFNABIdebNV1lZpNoC6Nlc8uOV1roB3j+AnCQy6WMEtvTiTAFOhbSg1B+XzV
8d1A81gvP3zCAViZjbW82vyXxaCm4IzjJtfrKmFj3eowhCh2LSGzOlHYJY0ejg89
exXDDJodJFXXKGj05XvmOD04L4aR0gvGwNc5gkmnnYkfcxjMYigCea172yktMvzb
KqNRdAzBAQ8cTKeEHOpwsxWSG11wtlwBuPlrE0xayyF8tBrFRgZrfV7T+fFY/cVR
/delyi3hC+IX4eSoBpGt
=6Asv
-----END PGP SIGNATURE-----

--Apple-Mail=_D1CABA36-8FEA-4ED4-A56F-CFE75095AA86--