PagerDuty/lita-pagerduty

View on GitHub
lib/lita/commands/identify.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Commands
  class Identify
    include Base

    def call
      store.get_user message
      response message: 'identify.already'
    rescue Exceptions::UserNotIdentified
      store.remember_user message
      response message: 'identify.complete'
    end
  end
end