Module: Printer

Defined in:
lib/airbrake/cli/printer.rb

Class Method Summary collapse

Class Method Details



2
3
4
5
6
# File 'lib/airbrake/cli/printer.rb', line 2

def self.print(collection)
  collection.each do |element|
    puts element
  end
end


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/airbrake/cli/printer.rb', line 8

def self.print_usage
  puts <<-USAGE
Usage: airbrake [COMMAND] [OPTION]...
Commands:
raise                          # Raise an exception specified by ERROR and MESSAGE.
list                           # List all the projects for given AUTH_TOKEN and ACCOUNT.
create                         # Create a project with the given NAME.
deploy                         # Send a new deployment notification to a project that matches the API_KEY.

Options:
-e, [--error=ERROR]            # Error class to raise. Default:  RuntimeError
-m, [--message=MESSAGE]        # Error message. Default: "I've made a huge mistake"
-k, [--api-key=API_KEY]        # Api key of your Airbrake application
-h, [--host=HOST]              # URL of the Airbrake API server. Default: api.airbrake.io
-p, [--port=PORT]              # Port of the Airbrake API server. Default: 80
-t, [--auth-token=AUTH_TOKEN]  # The auth token used for API requests
-a, [--account=ACCOUNT]        # The account used for API requests
-n, [--name=NAME]              # The name of the project you're trying to create
-E, [--rails-env=NAME]         # The name of the environment you're deploying to. Default: production
-r, [--scm-revision=REVISION]  # SCM revision for deployment info
-R, [--scm-repository=REPO]    # SCM repository for deployment info
-u, [--local-username=USER]    # The name of the user who is deploying
-h, [--help]                   # Show this usage
 USAGE
end