Class: Flapjack::Pikelet::Generic

Inherits:
Base
  • Object
show all
Defined in:
lib/flapjack/pikelet.rb

Constant Summary collapse

TYPES =
['notifier', 'processor', 'jabber', 'pagerduty', 'oobetet',
'email', 'sms', 'aws_sns', 'sms_twilio', 'sms_aspsms']

Instance Attribute Summary

Attributes inherited from Base

#pikelet, #redis, #siblings

Instance Method Summary collapse

Methods inherited from Base

#initialize, #stop

Constructor Details

This class inherits a constructor from Flapjack::Pikelet::Base

Instance Method Details

#reload(cfg) ⇒ Object

this should only reload if all changes can be applied – will return false to log warning otherwise



156
157
158
159
# File 'lib/flapjack/pikelet.rb', line 156

def reload(cfg)
  return false unless @pikelet.respond_to?(:reload)
  super(cfg) { @pikelet.reload(cfg) }
end

#startObject



148
149
150
151
152
# File 'lib/flapjack/pikelet.rb', line 148

def start
  super do
    @pikelet.start
  end
end