Class: Populus::Accepter::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/populus/accepter.rb

Instance Attribute Summary

Attributes inherited from Base

#condition, #metadata, #runner

Instance Method Summary collapse

Methods inherited from Base

#accept, #initialize, #on, #type?

Constructor Details

This class inherits a constructor from Populus::Accepter::Base

Instance Method Details

#create_threadObject



49
50
51
52
53
# File 'lib/populus/accepter.rb', line 49

def create_thread
  _name = [:name]
  Populus.logger.debug "Create thread: consul watch -type event -name #{_name}"
  Populus::WatchThread.consul_watch('-type', 'event', '-name', _name)
end

#has_name?(name) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/populus/accepter.rb', line 45

def has_name?(name)
  [:name] == name
end