Class: Sonar::Connector::SendAdminEmailCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/sonar_connector/commands/send_admin_email_command.rb

Instance Attribute Summary

Attributes inherited from Command

#proc

Instance Method Summary collapse

Methods inherited from Command

#execute

Constructor Details

#initialize(connector, message) ⇒ SendAdminEmailCommand

Returns a new instance of SendAdminEmailCommand.



4
5
6
7
8
9
# File 'lib/sonar_connector/commands/send_admin_email_command.rb', line 4

def initialize(connector, message)
  l = lambda do
    Sonar::Connector::Emailer.deliver_admin_message(connector, message)
  end
  super(l)
end