Class: Ruboty::Docker::Actions::Thread

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/docker/actions/thread.rb

Constant Summary

Constants inherited from Base

Base::NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ruboty::Docker::Actions::Base

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/ruboty/docker/actions/thread.rb', line 5

def call
    thread =  ::Thread
    current = thread::current
    thread::list.each do |t|
        t != current ? message.reply('--------------------------------------------------') : message.reply('--------------- Current Thread ---------------')
        message.reply(t)
        message.reply(t.status)
        message.reply(t.inspect)
    end
rescue => e
    value = [e.class.name, e.message, e.backtrace].join("\n")
    message.reply value
ensure
end