class Azuki::Command::Drains
display syslog drains for an app
Public Instance Methods
add()
click to toggle source
drains:add URL
add a syslog drain
# File lib/azuki/command/drains.rb, line 22 def add if url = args.shift puts azuki.add_drain(app, url) return else error("Usage: azuki drains:add URL") end end
index()
click to toggle source
drains
list all syslog drains
# File lib/azuki/command/drains.rb, line 13 def index puts azuki.list_drains(app) return end
remove()
click to toggle source
drains:remove URL
remove a syslog drain
# File lib/azuki/command/drains.rb, line 35 def remove if url = args.shift puts azuki.remove_drain(app, url) return else error("Usage: azuki drains remove URL") end end