class Honeybadger::CLI::Deploy

def initialize(options, args, config)

def initialize(options, args, config)
  @options = options
  @args = args
  @config = config
  @shell = ::Thor::Base.shell.new
end

def run

def run
  payload = {
    environment: config.get(:env),
    revision: options['revision'],
    repository: options['repository'],
    local_username: options['user']
  }
  response = config.backend.notify(:deploys, payload)
  if response.success?
    say("Deploy notification complete.", :green)
  else
    say(error_message(response), :red)
    exit(1)
  end
end