Class: Sonar::Connector::CommitSeppukuCommand

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

Instance Attribute Summary

Attributes inherited from Command

#proc

Instance Method Summary collapse

Methods inherited from Command

#execute

Constructor Details

#initializeCommitSeppukuCommand

Returns a new instance of CommitSeppukuCommand.



5
6
7
8
9
10
11
12
# File 'lib/sonar_connector/commands/commit_seppuku_command.rb', line 5

def initialize
  l = lambda do
    # controller is in scope here because we've jumped thru some serious hoops
    # and shaved the hell out of a yak or three.
    Thread.new {controller.shutdown_lambda.call}
  end
  super(l)
end