Class: VhostAdmin::Runner
- Inherits:
-
Thor
- Object
- Thor
- VhostAdmin::Runner
- Defined in:
- lib/vhost_admin/runner.rb
Instance Method Summary collapse
Instance Method Details
#add_domain(domain, password, user = nil) ⇒ Object
6 7 8 9 |
# File 'lib/vhost_admin/runner.rb', line 6 def add_domain(domain, password, user=nil) admin = VhostAdmin::Base.new() admin.add_domain(domain, password, user) end |
#delete_domain(domain, user = nil) ⇒ Object
12 13 14 15 |
# File 'lib/vhost_admin/runner.rb', line 12 def delete_domain(domain, user=nil) admin = VhostAdmin::Base.new admin.delete_domain(domain, user) end |