Class: Heroku::Command::Drains
- Defined in:
- lib/heroku/command/drains.rb
Overview
display syslog drains for an app
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#add ⇒ Object
drains:add URL.
-
#index ⇒ Object
drains.
-
#remove ⇒ Object
drains:remove URL.
Methods inherited from Base
#api, #app, #heroku, #initialize, namespace
Methods included from Helpers
#action, #ask, #confirm, #confirm_billing, #confirm_command, #create_git_remote, #deprecate, #display, #display_header, #display_object, #display_row, #display_table, #error, error_with_failure, error_with_failure=, extended, extended_into, #fail, #format_bytes, #format_date, #format_error, #format_with_bang, #get_terminal_environment, #git, #has_git?, #home_directory, #host_name, #hprint, #hputs, included, included_into, #json_decode, #json_encode, #launchy, #line_formatter, #longest, #output_with_bang, #quantify, #redisplay, #retry_on_exception, #run_command, #running_on_a_mac?, #running_on_windows?, #set_buffer, #shell, #spinner, #status, #string_distance, #styled_array, #styled_error, #styled_hash, #styled_header, #suggestion, #time_ago, #truncate, #with_tty
Constructor Details
This class inherits a constructor from Heroku::Command::Base
Instance Method Details
#add ⇒ Object
drains:add URL
add a syslog drain
22 23 24 25 26 27 28 29 |
# File 'lib/heroku/command/drains.rb', line 22 def add if url = args.shift puts heroku.add_drain(app, url) return else error("Usage: pogo drains:add URL") end end |
#index ⇒ Object
drains
list all syslog drains
13 14 15 16 |
# File 'lib/heroku/command/drains.rb', line 13 def index puts heroku.list_drains(app) return end |
#remove ⇒ Object
drains:remove URL
remove a syslog drain
35 36 37 38 39 40 41 42 |
# File 'lib/heroku/command/drains.rb', line 35 def remove if url = args.shift puts heroku.remove_drain(app, url) return else error("Usage: pogo drains remove URL") end end |