Class: ConfigureSentry
- Inherits:
-
Object
- Object
- ConfigureSentry
- Defined in:
- lib/renuo/cli/app/configure_sentry.rb
Constant Summary collapse
- ADMIN_EMAIL =
'[email protected]'.freeze
Instance Method Summary collapse
-
#initialize ⇒ ConfigureSentry
constructor
A new instance of ConfigureSentry.
- #run(args) ⇒ Object
Constructor Details
#initialize ⇒ ConfigureSentry
Returns a new instance of ConfigureSentry.
7 |
# File 'lib/renuo/cli/app/configure_sentry.rb', line 7 def initialize; end |
Instance Method Details
#run(args) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/renuo/cli/app/configure_sentry.rb', line 9 def run(args) project_name = args[0] sentry_dsn = args[1] abort('>> No project name given.') unless project_name abort('>> No sentry DSN name given.') unless sentry_dsn say "# Commands to setup Sentry on Heroku\n".colorize :green ENVIRONMENTS.each { |env| print_environment_commands(env, project_name, sentry_dsn) } end |