25 lines
704 B
Ruby
25 lines
704 B
Ruby
module JamRuby
|
|
class IcecastPath < ActiveRecord::Base
|
|
include JAmXml
|
|
self.primary_key = 'id'
|
|
|
|
attr_accessible :basedir, :logdir, :pidfile, :webroot, :adminroot, :allow_ip, :deny_ip, :aliass
|
|
|
|
def dumpXml (ident=1, output=$stdout)
|
|
|
|
a = "alias #{self.aliass}"
|
|
hash = Hash["basedir" => self.basedir,
|
|
"logdir" => self.logdir,
|
|
"pidfile" => self.pidfile,
|
|
"webroot" => self.webroot,
|
|
"adminroot" => self.adminroot,
|
|
|
|
"allow_ip" => self.allow_ip,
|
|
"deny_ip" => self.deny_ip,
|
|
"" => a,
|
|
]
|
|
self.jdumpXml(hash, "paths", ident, output)
|
|
end
|
|
|
|
end
|
|
end |