class Heroku::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/heroku/command/drains.rb, line 22
def add
  if url = args.shift
    puts heroku.add_drain(app, url)
    return
  else
    error("Usage: heroku drains:add URL")
  end
end
index() click to toggle source

drains

list all syslog drains

# File lib/heroku/command/drains.rb, line 13
def index
  puts heroku.list_drains(app)
  return
end
remove() click to toggle source

drains:remove URL

remove a syslog drain

# File lib/heroku/command/drains.rb, line 35
def remove
  if url = args.shift
    puts heroku.remove_drain(app, url)
    return
  else
    error("Usage: heroku drains remove URL")
  end
end