Module: Panelbeater::Cpanel::Commands

Defined in:
lib/panelbeater/cpanel/commands.rb

Instance Method Summary collapse

Instance Method Details

#addsubdomain(user, subdomain, rootdomain, directory) ⇒ Object



5
6
7
# File 'lib/panelbeater/cpanel/commands.rb', line 5

def addsubdomain(user, subdomain, rootdomain, directory)
  cpanel(user, {:xmlin => "<cpanelaction><module>SubDomain</module><func>addsubdomain</func><args><domain>#{subdomain}</domain><rootdomain>#{rootdomain}</rootdomain><dir>#{directory}</dir></args></cpanelaction>"})
end